forked from open-rmf/next_gen_prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
Demo Nav2 scan observations in the layered global map #2
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
Merged
SamuelFoo
merged 12 commits into
feat/layered-global-map
from
feat/nav2-observation-regions-demo
Jul 20, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
16153e9
nav2: support localization-only multi-robot bringup
SamuelFoo 1fa278f
demo: combine Nav2 scan observations
SamuelFoo 6bc186f
docs: describe Nav2 observation demo
SamuelFoo 924bf11
demo: move robots through Nav2 goals
SamuelFoo 24aa7ad
demo: visualize retained region updates
SamuelFoo 055eb9b
docs: describe moving Nav2 observation demo
SamuelFoo 7508d21
feat: support convex polygon map regions
SamuelFoo daee5fe
demo: add laser ray clearing
SamuelFoo b6d70d6
docs: describe laser ray clearing
SamuelFoo 41fdf7f
demo: distinguish clear and occupied markers
SamuelFoo cc51fce
demo: default observation TTL to ten seconds
SamuelFoo 716d553
docs: add Nav2 observation screenshot
SamuelFoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Layered Map Server Demos | ||
|
|
||
| This package contains two demonstrations of the layered map server. | ||
|
|
||
| ## TTL Smoke Test | ||
|
|
||
| This demo publishes a synthetic static grid and a temporary rectangle with a five-second TTL: | ||
|
|
||
| ```bash | ||
| ros2 launch rmf_layered_map_server_demo demo.launch.py | ||
| ``` | ||
|
|
||
| Use `use_rviz:=False` for a headless run. | ||
|
|
||
| ## Three-Robot Nav2 Observation Demo | ||
|
|
||
| This demo combines laser observations from three moving Nav2 robots in the global `/map`: | ||
|
|
||
| ```bash | ||
| ros2 launch rmf_layered_map_server_demo nav2_observations.launch.py | ||
| ``` | ||
|
|
||
|  | ||
|
|
||
| By default, the demo opens three robot-local RViz windows and one combined-map view, moves the robots between fixed goals, spawns demo obstacles, and retains scans for ten seconds. | ||
|
|
||
| * Set `use_nav2_rviz:=False` or `use_global_rviz:=False` to disable either RViz view. | ||
| * Set `move_robots:=False` to disable robot movement. | ||
| * Set `spawn_clutter:=False` to use the unmodified warehouse world. | ||
| * Set `reset_source:=True` to show only the latest scan from each robot. | ||
| * Use `map` and `params_file` to override the warehouse map and shared Nav2 parameters. | ||
| * `beam_stride:=1` and `publish_period_sec:=0.5` control scan sampling. | ||
| * `max_observation_range:=2.5` and `ttl_sec:=10.0` control range and retention. | ||
Binary file added
BIN
+85.6 KB
map_server/rmf_layered_map_server_demo/docs/images/nav2_observations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen shots of what to expect would be good. Consider making the scan points more visible in rviz. It took me quite some time to figure out what I was staring at and locate the obstacle.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an expected-result screenshot to the demo README in
716d553.I also made the scan contributions easier to distinguish in
41fdf7f: clear-space regions use a lighter tint and render below occupied regions, while occupied regions use a darker tint.