Fix correct usage of angular velocity in update_odometry() function#1118
Conversation
saikishor
left a comment
There was a problem hiding this comment.
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? |
christophfroehlich
left a comment
There was a problem hiding this comment.
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 createdDetails
|
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
saikishor
left a comment
There was a problem hiding this comment.
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