Skip to content

Conversation

chanhhoang99
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses (add tickets here #5214)
Primary OS tested on (Ubuntu)
Robotic platform tested on (Real robot with video and bags recorded)
Does this PR contain AI generated software? (No)

Description of contribution in a few bullet points

Verify acceleration constrain applied to noise velocity sample.

Description of documentation updates required from your changes

Description of how this change was tested

Tested with robot base which has acceleration clamp in driver controller and verify if robot MPPI controller can predict that acceleration clamp or not.(Tested with low acceleration e.g az = 0.1 rad/s^2, ax max = 0.5 m/s^2, ax min = -0.5m/s^2)


Future work that may be required in bullet points

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

@chanhhoang99 chanhhoang99 changed the title Unclamp noises velocity. Unclamp noise velocity. Jun 13, 2025
Copy link
Contributor

mergify bot commented Jun 13, 2025

@chanhhoang99, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

Please remove the commented out lines, I don't like keeping dead code inline :-)

Please also rebase on main so CI should turn over - there were some message filter API changes that are fixed in main now that should make this compile (minus any potential issues in this PR)

Also fix the linting error:


+++ nav2_mppi_controller/include/nav2_mppi_controller/motion_models.hpp.uncrustify
@@ -96,2 +96,2 @@
-         .cwiseMax(lower_bound_vx)
-         .cwiseMin(upper_bound_vx);
+        .cwiseMax(lower_bound_vx)
+        .cwiseMin(upper_bound_vx);
@@ -103,2 +103,2 @@
-         .cwiseMax(state.wz.col(i - 1) - max_delta_wz)
-         .cwiseMin(state.wz.col(i - 1) + max_delta_wz);
+        .cwiseMax(state.wz.col(i - 1) - max_delta_wz)
+        .cwiseMin(state.wz.col(i - 1) + max_delta_wz);
@@ -117,2 +117,2 @@
-           .cwiseMax(lower_bound_vy)
-           .cwiseMin(upper_bound_vy);
+          .cwiseMax(lower_bound_vy)
+          .cwiseMin(upper_bound_vy);

@SteveMacenski SteveMacenski linked an issue Jun 16, 2025 that may be closed by this pull request
@SteveMacenski
Copy link
Member

See my comment in huynhduc9905#6 (comment)

@chanhhoang99 chanhhoang99 force-pushed the accel_constrain_debug branch from 87c7f34 to 781b790 Compare June 17, 2025 03:20
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...ler/include/nav2_mppi_controller/motion_models.hpp 100.00% <100.00%> (ø)

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SteveMacenski
Copy link
Member

Your compiler warnings are odd - I just opened a PR that should address it #5277. I'll merge once CI passes in the morning and then you should rebase on it to get the Build Against Released Distributions" jobs to pass

@SteveMacenski
Copy link
Member

SteveMacenski commented Jun 17, 2025

Merged - please rebase!

I’m not sure what’s going on with mypy linting - feel free to ignore that for the scope of this PR if we get everything else passing.

@chanhhoang99 chanhhoang99 force-pushed the accel_constrain_debug branch from a038a8f to c74adaa Compare June 17, 2025 08:45
@SteveMacenski
Copy link
Member

@chanhhoang99 please sign off with DCO :-) That's the only thing blocking for merge other than asking others to validate since this is a major change (even though its like 3 changes 😆 )

Signed-off-by: Chanh Hoang <[email protected]>
Signed-off-by: Chanh Hoang <[email protected]>
Signed-off-by: Chanh Hoang <[email protected]>
Signed-off-by: Chanh Hoang <[email protected]>
@chanhhoang99 chanhhoang99 force-pushed the accel_constrain_debug branch from c74adaa to c783bec Compare June 18, 2025 03:24
@SteveMacenski
Copy link
Member

Just waiting on testing BTW!

@SteveMacenski
Copy link
Member

I'm having a hard time finding beta testers with similar situations that aren't too underwater to test this. I'm going to go ahead and merge this after some preliminary testing done be 2-3 people and didn't notice an issue. I'll just keep a look out on the issue tracker if there are any regressions reported.

Thanks for this contribution @chanhhoang99 !

@SteveMacenski SteveMacenski merged commit fb25b2f into ros-navigation:main Jul 2, 2025
15 checks passed
@SteveMacenski
Copy link
Member

@chanhhoang99 should we keep chatting about the lag compensation piece?

@chanhhoang99
Copy link
Contributor Author

@SteveMacenski , I have not yet make progress on that. I will create another issue when there is improvement.

@SteveMacenski
Copy link
Member

Great thanks for the update! Let me know if I can be of help! I really appreciate you digging into MPPI, not many folks have given me critical feedback on the internal functioning to date (only that they like the outputs)

SakshayMahna pushed a commit to SakshayMahna/navigation2 that referenced this pull request Jul 6, 2025
* unclamp state.cvx

Signed-off-by: Chanh Hoang <[email protected]>

* remove uncommented code

Signed-off-by: Chanh Hoang <[email protected]>

* fix linting

Signed-off-by: Chanh Hoang <[email protected]>

* fix wrong linting

Signed-off-by: Chanh Hoang <[email protected]>

---------

Signed-off-by: Chanh Hoang <[email protected]>
@ros-navigation ros-navigation deleted a comment from Kingahmad001 Jul 11, 2025
adivardi pushed a commit to enwaytech/navigation2 that referenced this pull request Aug 11, 2025
* unclamp state.cvx

Signed-off-by: Chanh Hoang <[email protected]>

* remove uncommented code

Signed-off-by: Chanh Hoang <[email protected]>

* fix linting

Signed-off-by: Chanh Hoang <[email protected]>

* fix wrong linting

Signed-off-by: Chanh Hoang <[email protected]>

---------

Signed-off-by: Chanh Hoang <[email protected]>
@tonynajjar
Copy link
Contributor

tonynajjar commented Aug 19, 2025

For me these changes are breaking; the acceleration limits are no longer respected:

before this PR

image

after this PR

image

I'm not too familiar with this part to debug, can you guys see an issue with it? I created #5464 to track

SteveMacenski added a commit that referenced this pull request Aug 19, 2025
SteveMacenski added a commit that referenced this pull request Aug 19, 2025
bkoensgen pushed a commit to bkoensgen/navigation2 that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MPPI] Question on Motion model Lag Compensation
3 participants