-
Notifications
You must be signed in to change notification settings - Fork 446
Unit tests for the new odometry implementation in diff_drive_controller #2099
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
base: master
Are you sure you want to change the base?
Unit tests for the new odometry implementation in diff_drive_controller #2099
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2099 +/- ##
==========================================
+ Coverage 84.79% 84.85% +0.06%
==========================================
Files 151 152 +1
Lines 14607 14630 +23
Branches 1266 1266
==========================================
+ Hits 12386 12415 +29
+ Misses 1763 1757 -6
Partials 458 458
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Amronos
left a comment
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 a lot for the tests! Some minor suggestions.
|
|
||
| TEST_F(OdometryTest, TestOpenLoopUpdate) | ||
| { | ||
| // Test the new API: try_update_open_loop |
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.
| // Test the new API: try_update_open_loop |
I don't think this is needed.
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 have removed it.
| // Directly feed v=2.0, w=0.5, dt=1.0 | ||
| bool result = odometry_.try_update_open_loop(2.0, 0.5, 1.0); | ||
|
|
||
| EXPECT_TRUE(result); |
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.
Could you add this to the other test cases also?
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 suggestions, I have updated it at other places.
Fixes #2033
Description
This PR adds unit tests for the
Odometryclass indiff_drive_controllerto verify the new mathematical logic introduced in #1854.Changes
test/test_odometry.cppcovering:dtCMakeLists.txtto build the new test.Testing
colcon test: 8 tests passed, 0 failures.