-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add DiffDriveOdometry pybind11 interface and examples #314
Conversation
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
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: ahcorde <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Louise Poubel <[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.
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 <[email protected]>
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 |
Signed-off-by: ahcorde [email protected]
🎉 New feature
Summary
This PR creates a DiffDriveOdometry Pybind11 interface and adds examples
Depends on
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.