Skip to content

Mecanum Drive: Populate the pose covariance matrix #1772

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hilary-luo
Copy link

During recent testing I noticed that the pose covariance matrix was not being populated in the mecanum drive controller. This PR is to populate the covariance matrix in the message using the coordinating parameters in the same way that the twist covariance matrix is populated.

Once this is merged I do want to get it backported, I'm not certain what the process is for that.

Copy link

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.39%. Comparing base (a88bf0a) to head (cd37d40).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1772   +/-   ##
=======================================
  Coverage   86.38%   86.39%           
=======================================
  Files         123      123           
  Lines       12240    12241    +1     
  Branches     1024     1024           
=======================================
+ Hits        10574    10575    +1     
  Misses       1348     1348           
  Partials      318      318           
Flag Coverage Δ
unittests 86.39% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
..._drive_controller/src/mecanum_drive_controller.cpp 90.94% <100.00%> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Juliaj
Copy link
Contributor

Juliaj commented Jun 26, 2025

The change looks good, please help add a test.

@saikishor saikishor enabled auto-merge (squash) June 27, 2025 20:30
destogl
destogl previously approved these changes Jul 1, 2025
Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good,but let's add test as @christophfroehlich mentioned.

@saikishor saikishor disabled auto-merge July 1, 2025 17:26
@moriarty
Copy link
Contributor

moriarty commented Jul 2, 2025

@destogl is it enough to just modify one of the existing tests to catch this?

Eg: just update one of these two lines

twist_covariance_diagonal: [0.0, 7.0, 14.0, 21.0, 28.0, 35.0]
pose_covariance_diagonal: [0.0, 7.0, 14.0, 21.0, 28.0, 35.0]

pose_covariance_diagonal: [0.001, 0.001, 0.001, 0.001, 0.001, 0.001]
twist_covariance_diagonal: [0.001, 0.001, 0.001, 0.001, 0.001, 0.001]

@christophfroehlich
Copy link
Contributor

@destogl is it enough to just modify one of the existing tests to catch this?

this is not enough because there is no test for checking the values ;)

This can be added to when_update_is_called_expect_status_message for example.

@hilary-luo
Copy link
Author

Please let me know if this requires any additional changes from me to get this merged.

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please have a look at the failing pre-commit tests. Apart from that, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants