-
Notifications
You must be signed in to change notification settings - Fork 363
Fix correct usage of angular velocity in update_odometry() function #1118
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix correct usage of angular velocity in update_odometry() function #1118
Conversation
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.
I haven't reviewed the original code yet, but isn't the angle here referring to the angle itself instead of angular velocity?
Well in all the functions that call |
Fine! Thanks for the explanation. Do you mind adding tests for your changes? |
Sure thing! I added some very simple tests, please let me know if these are okay or if we want to test some more exotic situations? |
Please have a look at #954 and review what I've written there. I realized some wrong code too, but wanted to have the theory/nomenclature approved before I start fixing/refactoring. |
Very nice! I'll review that soon! |
@christophfroehlich I just reviewed your documentation effort and that looks really nice! Great work! |
I'd like to update the function documentation/docstring to make this point clear. But you deactivated the tick Maintainers are allowed to edit this pull request. I'll open a new PR on top of that one |
Ahh I wasn't aware of that checkbox, it seems I also can't change that anymore? |
@christophfroehlich Can you list the changes you wanted to make? Or create a pull request targetting this PR? |
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.
Thanks for the changes, the algorithm seems to be fine now. I made a follow-up PR #1149 to get a more consistent nomenclature.
@Mergifyio backport humble iron |
✅ Backports have been created
|
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
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.
The current fix and the tests look good to me.
Thank you 👍🏽
Ahh I wasn't aware of that checkbox, it seems I also can't change that anymore?
Done! |
Thanks for this nice steering_controllers_library!
Using it however, we noticed issues in the odometry calculation where our steered robot would spin incredibly fast.
There seems a small math error in the calculation which this PR fixes:
The integration expects distances and angles, while the accumulators expect a velocity.
Probably also relates to #937