Add DiffDriveOdometry pybind11 interface and examples#314
Merged
Add DiffDriveOdometry pybind11 interface and examples#314
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Codecov Report
@@ Coverage Diff @@
## ign-math6 #314 +/- ##
==========================================
Coverage 99.65% 99.65%
==========================================
Files 67 67
Lines 6364 6364
==========================================
Hits 6342 6342
Misses 22 22 Continue to review full report at Codecov.
|
Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
chapulina
reviewed
Dec 28, 2021
Contributor
chapulina
left a comment
There was a problem hiding this comment.
I pushed some formatting for the examples in 7870ccd, now they both should have similar output:
C++
--- Rotate both wheels by 1 degree. ---
Linear velocity: 0.0872665 m/s
Odom linear velocity: 0.0872665 m/s
Angular velocity should be zero since the "robot" is traveling
in a straight line:
Odom angular velocity: 0 rad/s
--- This time rotate the right wheel by 1 degree. ---
The heading should be the arc tangent of the linear distance
traveled by the right wheel (the left wheel was stationary)
divided by the wheel separation.
Heading: 0.0043633 rad
Odom Heading: 0.00436332 rad
X distance traveled: 0.0218166 m
Odom X: 0.0218166 m
Y distance traveled: 9.51916e-06 m
Odom Y: 2.85578e-05 m
Angular velocity should be the difference between the x and y
distance traveled divided by the wheel separation divided by
the seconds elapsed.
Angular velocity: 0.0217688 rad/s
Odom angular velocity: 0.0218166 rad/s
Python:
--- Rotate both wheels by 1 degree. ---
Linear velocity: 0.08726646259971647 m/s
Odom linear velocity: 0.08726646259971647 m/s
Angular velocity should be zero since the "robot" is traveling
in a straight line:
Odom angular velocity: 0 rad/s
--- This time rotate the right wheel by 1 degree. ---
The heading should be the arc tangent of the linear distance
traveled by the right wheel (the left wheel was stationary)
divided by the wheel separation.
Heading: 0.004363295439797267 rad
Odom Heading: 0.00436332 rad
X distance traveled: 0.021816574114764897 m
Odom X: 0.021816574114211357 m
Y distance traveled: 9.519158445048248e-06 m
Odom Y: 2.855783779653898e-05 m
Angular velocity should be the difference between the x and y
distance traveled divided by the wheel separation divided by
the seconds elapsed.
Angular velocity: 0.02176881218188277 rad/s
Odom angular velocity: 0.0218166 rad/s
I just have one question left
Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>
chapulina
approved these changes
Dec 28, 2021
45 tasks
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: ahcorde ahcorde@gmail.com
🎉 New feature
Summary
This PR creates a DiffDriveOdometry Pybind11 interface and adds examples
Depends on
Checklist
codecheckpassed (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-bymessages.