Skip to content

feat(map): add tool to inject /map/vector_map_marker into rosbag2 mcap bags#376

Closed
satoshi-ota wants to merge 4 commits intoautowarefoundation:mainfrom
tier4:feat/insert-map-tool
Closed

feat(map): add tool to inject /map/vector_map_marker into rosbag2 mcap bags#376
satoshi-ota wants to merge 4 commits intoautowarefoundation:mainfrom
tier4:feat/insert-map-tool

Conversation

@satoshi-ota
Copy link
Copy Markdown
Contributor

Description

Added a new package, autoware_vector_map_marker_bag_tools, under src/tools/map.

This package provides a CLI tool to:

  • launch tier4_map_component.launch.xml
  • capture /map/vector_map_marker
  • insert the captured message into an existing rosbag2 bag
  • write the result either to map_added/ inside the input bag directory or back to the original bag with --in-place

The tool also:

  • overwrites an existing map_added/ output directory
  • preserves the original .mcap filename when writing the updated bag
  • skips non-critical topics that cannot be registered in the current environment
  • automatically reindexes unindexed input MCAP bags when needed

How was this PR tested?

  • Verified Python syntax with python3 -m py_compile
  • Verified ros2 run autoware_vector_map_marker_bag_tools insert_vector_map_marker.py --help
  • Verified rosbag2 write/read behavior with temporary MCAP test bags
  • Verified output path resolution for default output and --in-place
  • Verified .mcap filename preservation and metadata reindexing after rename

Notes for reviewers

None.

Effects on system behavior

None.

…p bags

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the feat/insert-map-tool branch from ac610b5 to 85bf107 Compare March 18, 2026 08:29
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 18, 2026

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota closed this Apr 9, 2026
@satoshi-ota satoshi-ota deleted the feat/insert-map-tool branch April 9, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant