-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Ackermann plugin zero linVel turningRadius bug #1849
Fix Ackermann plugin zero linVel turningRadius bug #1849
Conversation
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1849 +/- ##
============================================
Coverage 64.80% 64.80%
============================================
Files 322 322
Lines 26389 26392 +3
============================================
+ Hits 17101 17103 +2
- Misses 9288 9289 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a minor comment
Fix for handling Ackermann wheel steering angle bug where wheel always points same direction when linVel is zero and abs(angVel) > 0.001. Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com> Co-authored-by: Jenn Nguyen <jenn@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jennuine did a quick test and seems to work fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to wait for CI before this can be merged and a new release made. If I can't get to it tonight, it will be finished tomorrow
Thanks @jennuine! Really appreciate it! |
@ahcorde @jennuine @mjcarroll thank you all for the expediency on getting this bug fixed, does anyone know when the next forward port to gz-sim7? looks like the last was: #1832. Also I think that there has not been a new point release for garden in a while (39520a1), looks like the motor plugin update wasn't included as well in last point release: #1794. |
I'm going to try to get a forward port and point release out today for you. |
🦟 Bug fix
Fixes #1848
Summary
Fix for handling Ackermann wheel steering angle bug where wheel always points same direction when linVel is zero and abs(angVel) > 0.001. This results in an always positive evaluated turningRadius. This solution fixes it by handling linVel zero properly. Allowing it to get past the first conditional that it is otherwise stuck on.
Now the wheels can rotate both directions when the vehicle has no linVel:
FixedAckermannPluginBug.mp4
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.