Skip to content

Fix collision monitor and costmap tests, Update tf2_ros API - #6271

Closed
mini-1235 wants to merge 3 commits into
ros-navigation:mainfrom
mini-1235:fix/collision_monitor_tests
Closed

mini-1235 wants to merge 3 commits into
ros-navigation:mainfrom
mini-1235:fix/collision_monitor_tests

Conversation

@mini-1235

Copy link
Copy Markdown
Collaborator

Basic Info

Info Please fill out this column
Ticket(s) this addresses (add tickets here #1)
Primary OS tested on (Ubuntu, MacOS, Windows)
Robotic platform tested on (Steve's Robot, gazebo simulation of Tally, hardware turtlebot)
Does this PR contain AI generated software? (No; Yes and it is marked inline in the code)
Was this PR description generated by AI software? Out of respect for maintainers, AI for human-to-human communications are banned

Description of contribution in a few bullet points

Description of documentation updates required from your changes

Description of how this change was tested


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
  • Should this be backported to current distributions? If so, tag with backport-*.

Comment thread nav2_collision_monitor/src/polygon.cpp Resolved
@mini-1235

Copy link
Copy Markdown
Collaborator Author

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
nav2_collision_monitor/src/polygon.cpp 97.31% <100.00%> (+3.00%) ⬆️
...ude/nav2_costmap_2d/asymmetric_inflation_layer.hpp 100.00% <ø> (ø)
..._costmap_2d/plugins/asymmetric_inflation_layer.cpp 99.34% <100.00%> (+78.03%) ⬆️

... and 6 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 SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Otherwise LGTM

Comment thread nav2_collision_monitor/src/polygon.cpp Resolved
Signed-off-by: mini-1235 <[email protected]>
@mini-1235

Copy link
Copy Markdown
Collaborator Author

It looks like we have a recent update from geometry2: ros2/geometry2#940 that causes the build to fail again :(

Signed-off-by: mini-1235 <[email protected]>
@mini-1235 mini-1235 changed the title Fix collision monitor and costmap tests Fix collision monitor and costmap tests, Update tf2_ros API Jul 17, 2026
@mini-1235

Copy link
Copy Markdown
Collaborator Author

The new API is only available on Lyrical and newer, what's your opinion on this? Create something like std::make_shared<nav2::CreateTimerROS> ?

@mini-1235

Copy link
Copy Markdown
Collaborator Author

I retriggered twice but still hitting the timeout issue

@SteveMacenski

SteveMacenski commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

The new API is only available on Lyrical and newer, what's your opinion on this? Create something like std::make_sharednav2::CreateTimerROS ?

Yeah. ifdefing that would be painful and too many places. Lets abstract that out. TransformBroadcaster, Buffer both it seems. If we make a new nav2::TransformBuffer then we can also hide the details of CreateTimerROS within that to do the usual workflow of creating the buffer, creating the timer, adding the timer to the buffer all within that factory function or buffer constructor.

Maybe also nav2::TransformListener too just to round it off even though nothing's different about it (yet).

Comment thread nav2_collision_monitor/src/polygon.cpp Resolved
@SteveMacenski

Copy link
Copy Markdown
Member

I'm taking this one over - thanks @mini-1235 for getting a jump start on it

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.

2 participants