Skip to content
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

Fix flaky smoother test #4372

Merged
merged 4 commits into from
May 29, 2024
Merged

Fix flaky smoother test #4372

merged 4 commits into from
May 29, 2024

Conversation

SteveMacenski
Copy link
Member

Removes tolerance so it should now work deterministically if I understand the issue correctly

@SteveMacenski
Copy link
Member Author

SteveMacenski commented May 29, 2024

This is ultimately caused by the new analytic expansion technique checking until the end point. Thus, the last point and the goal node can be within floating point error of each other which causes an additional segment to be added when overlapping. This last duplicate point is removed in the planner plugins by checking if there is close overlap but that is not performed in the test. Thus, we can accept either 2 or 3 and either is valid as long as the planner plugins are properly interpreting that duplicate result. Because they're so close, it can be interpreted as 2 or 3 depending on the run and I assume something so low-level in C++ that it is really not worth trying to fix given there is no where that this would functionally appear for users except for in this location bypassing over checks that happen at the plugin level at runtime

Definitely a subtle one, good thing we have all these unit tests!

@SteveMacenski SteveMacenski merged commit e8d3cd8 into main May 29, 2024
9 of 10 checks passed
@mergify mergify bot deleted the smoother_test branch May 29, 2024 03:23
Marc-Morcos pushed a commit to Marc-Morcos/navigation2 that referenced this pull request Jul 4, 2024
* fix flaky smoother tets

* fix test

* fix
f-fl0 added a commit to seqsense/aports-ros-experimental that referenced this pull request Jul 5, 2024
f-fl0 added a commit to seqsense/aports-ros-experimental that referenced this pull request Jul 5, 2024
* humble-3.17: automatic update on 20240701-002215
* Update patch for tf2
  - Disable copyright and uncrustify tests
* Add workaround-gcc-segv patch for rclcpp_lifecycle
* Add patch to fix flaky smoother test in nav2-smac-planner
  - Apply the same fix as in
    ros-navigation/navigation2#4372

---------

Co-authored-by: Alpine ROS aports update bot <[email protected]>
Co-authored-by: f-fl0 <[email protected]>
Manos-G pushed a commit to Manos-G/navigation2 that referenced this pull request Aug 1, 2024
* fix flaky smoother tets

* fix test

* fix
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.

1 participant