Skip to content

Fix open-loop odometry using unbounded commands by applying SpeedLimiter first#2260

Merged
christophfroehlich merged 4 commits intoros-controls:masterfrom
Saitejabojja07:diffdrive
Apr 2, 2026
Merged

Fix open-loop odometry using unbounded commands by applying SpeedLimiter first#2260
christophfroehlich merged 4 commits intoros-controls:masterfrom
Saitejabojja07:diffdrive

Conversation

@Saitejabojja07
Copy link
Copy Markdown
Contributor

Open-loop odometry was using raw velocity commands before SpeedLimiter,
causing it to integrate unbounded inputs.

Moved limiter application before odometry update so try_update_open_loop()
uses limited commands, aligning odometry with actual motion.

Fixes: #2250

Copy link
Copy Markdown
Member

@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 cleanup this PR and don't commit your vscode folder.

@Saitejabojja07
Copy link
Copy Markdown
Contributor Author

@christophfroehlich I have cleaned up the PR are there any other change required?

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.68%. Comparing base (629afee) to head (4dd6e08).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2260   +/-   ##
=======================================
  Coverage   84.68%   84.68%           
=======================================
  Files         153      153           
  Lines       15318    15318           
  Branches     1332     1332           
=======================================
  Hits        12972    12972           
  Misses       1858     1858           
  Partials      488      488           
Flag Coverage Δ
unittests 84.68% <100.00%> (ø)

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

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

@christophfroehlich christophfroehlich added backport-jazzy Triggers PR backport to ROS 2 jazzy. backport-kilted Triggers PR backport to ROS 2 kilted. labels Mar 30, 2026
Copy link
Copy Markdown
Member

@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.

Thank you, this fixes the mentioned issue. Just a nitpick comment, let's sort that to very top.

Copy link
Copy Markdown
Contributor

@thedevmystic thedevmystic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@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.

LGTM

@christophfroehlich christophfroehlich merged commit 7c64f3a into ros-controls:master Apr 2, 2026
18 checks passed
mergify bot pushed a commit that referenced this pull request Apr 2, 2026
mergify bot pushed a commit that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-jazzy Triggers PR backport to ROS 2 jazzy. backport-kilted Triggers PR backport to ROS 2 kilted.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiffDrive: Use limited variables for open loop odometry calculation

3 participants