Skip to content

Conversation

@AJedancov
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses #5763
Primary OS tested on Ubuntu
Robotic platform tested on Gazebo simulation
Does this PR contain AI generated software? No
Was this PR description generated by AI software? No

Description of contribution in a few bullet points

  • I added a check whether filter_mask is nullptr.
  • Warning if it hasn't been received yet.

Description of documentation updates required from your changes

Description of how this change was tested

ros2 launch nav2_bringup tb4_simulation_launch.py headless:=False

Update filter mask:

ros2 service call /keepout_filter_mask_server/load_map nav2_msgs/srv/LoadMap "{map_url: '/opt/overlay_ws/src/navigation2/nav2_bringup/maps/depot_keepout_new.yaml'}"
Pasted image 20251208204620

Future work that may be required in bullet points

  • Initially, I chose the logging type RCLCPP_WARN_THROTTLE identical to the check that in KeepoutFilter::process. But this type does't work correctly due to issue: Issue with RCLCPP THROTTLE logging in the plugin based approach #2587.
    Alternatively, we can temporarily use:

    • RCLCPP_WARN, but it fills the terminal too quickly.
    • RCLCPP_WARN_ONCE, this type also does not work correctly (it does not print once), but at least it provides information and with less frequency than the first option.
  • Replace RCLCPP_WARN_ONCE with RCLCPP_WARN_THROTTLE, when the above issue will be solved.

  • If you agree with the current implementation, I will also change the warning type in Keepout Filter::process.

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

Copy link
Collaborator

@mini-1235 mini-1235 left a comment

Choose a reason for hiding this comment

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

Initially, I chose the logging type RCLCPP_WARN_THROTTLE identical to the check that in KeepoutFilter::process. But this type does't work correctly due to issue: ros2/rclcpp#2587.
Alternatively, we can temporarily use:
RCLCPP_WARN, but it fills the terminal too quickly.
RCLCPP_WARN_ONCE, this type also does not work correctly (it does not print once), but at least it provides information and with less frequency than the first option.
Replace RCLCPP_WARN_ONCE with RCLCPP_WARN_THROTTLE, when the above issue will be solved.
If you agree with the current implementation, I will also change the warning type in Keepout Filter::process

I will leave the final decision to @SteveMacenski 😄

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

@AJedancov rebase for me. We did some change recently based on a Rolling sync that need to be reflected here for CI

@AJedancov AJedancov force-pushed the fix/check-keepout-filter-mask branch from 692f273 to 7270aae Compare December 10, 2025 08:25
@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...tmap_2d/plugins/costmap_filters/keepout_filter.cpp 33.33% 2 Missing ⚠️
Files with missing lines Coverage Δ
...tmap_2d/plugins/costmap_filters/keepout_filter.cpp 77.85% <33.33%> (-0.98%) ⬇️

... 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 merged commit 2779b43 into ros-navigation:main Dec 10, 2025
15 of 16 checks passed
@SteveMacenski
Copy link
Member

thanks much for this!

@AJedancov AJedancov deleted the fix/check-keepout-filter-mask branch December 11, 2025 08:11
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.

Segmentation fault during updown test

3 participants