-
Notifications
You must be signed in to change notification settings - Fork 323
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 correct usage of angular velocity in update_odometry() function #1118
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 <[email protected]>
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! |
…1118) (#1154) (cherry picked from commit d2e926b) Co-authored-by: Ferry Schoenmakers <[email protected]>
…1118) (#1153) (cherry picked from commit d2e926b) Co-authored-by: Ferry Schoenmakers <[email protected]>
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