Skip to content

Support keep out zone and speed filters - #46

Merged
hello-robot-shehab merged 8 commits into
jazzyfrom
feature/add_nav2_filters
Aug 20, 2026
Merged

Support keep out zone and speed filters#46
hello-robot-shehab merged 8 commits into
jazzyfrom
feature/add_nav2_filters

Conversation

@hello-ola

@hello-ola hello-ola commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR

  1. fixes how the dual lidar script validates and applies parameters.
  2. add required files to run navigation with keepout zone filter and speed filter.
  3. rename the files that setup binary filters to indicate which filter they belong to.
  4. update binary_filter_switch.py to update parameters without using subprocesses.
  5. Saves empty bins in laserscan as infinity instead of max_range

to test

ros2 launch stretch_nav2 navigation_mppi_nav2_filters.launch.py \
  map:=/path/to/map.yaml \
  keepout_mask:=/path/to/keepout_mask.yaml \
  speed_mask:=/path/to/speed_mask.yaml

and visually check that the robot doesnt go to the keepout zones even if its shorter to pass through it. and you should see a change in speed when it enters the speed costmaps.

for the binary filter

Start the filter node:
ros2 launch stretch_nav2 binary_filter_launch.py
Launch navigation with the filter configuration:
ros2 launch stretch_nav2 navigation_mppi_binary_filter.launch.py

@hello-ola
hello-ola requested a review from hello-binit July 29, 2026 01:11
@hello-ola hello-ola changed the title Feature/add nav2 filters Support keep out zone and speed filters Jul 29, 2026
* replace wall timer with ros2 approximate time synchronizer and warn when lidars go stale

* tighten the bound for floor finding so it doesnt latch to floor away from the robot base
@hello-robot-shehab

hello-robot-shehab commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Works well!

image image

@hello-robot-shehab
hello-robot-shehab merged commit 437d7fe into jazzy Aug 20, 2026
2 checks passed
@hello-robot-shehab
hello-robot-shehab deleted the feature/add_nav2_filters branch August 20, 2026 00:55
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.

3 participants