RoboCup-SSL / grSim

RoboCup Small Size Robot Soccer Simulator
https://ssl.robocup.org/league-software/
Other
128 stars 130 forks source link

fix division by zero bug on robot spec handling #161

Closed FelipeMartins96 closed 3 years ago

FelipeMartins96 commented 3 years ago

Identify the Bug

160

Description of the Change

Handle the case when acceleration is higher than the limit and sent speed is zero by using the robot current speed as proposed @g3force

Alternate Designs

I tried setting the limits directly to the wheel sent speeds, but this solution is simpler and requires less conversions

Possible Drawbacks

Verification Process

I've tested sending a robot speed for a fixed number of steps, then set the speed to zero. This test was done for different robot angles.

Release Notes

Not applicable