Skip to content

feat(autoware_static_centrline_generator): load projecter info from yaml file#333

Open
saka1-s wants to merge 3 commits intoautowarefoundation:mainfrom
tier4:tmp/static_centerline_generator-tm
Open

feat(autoware_static_centrline_generator): load projecter info from yaml file#333
saka1-s wants to merge 3 commits intoautowarefoundation:mainfrom
tier4:tmp/static_centerline_generator-tm

Conversation

@saka1-s
Copy link

@saka1-s saka1-s commented Jan 6, 2026

Description

Currently, autoware_static_centrline_generator only supports maps in the MGRS coordinate system and local coordinate system.
This PR can be changed to support a variety of coordinate systems by reading the coordinate system from a yaml file.

How was this PR tested?

With TM coordinate map.

Notes for reviewers

None.

Effects on system behavior

After merged this PR, user need to specify map directory path.

@github-actions
Copy link

github-actions bot commented Jan 6, 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: Shohei Sakai <saka1s.jp@gmail.com>
Signed-off-by: Shohei Sakai <saka1s.jp@gmail.com>
@saka1-s saka1-s force-pushed the tmp/static_centerline_generator-tm branch from ed00a05 to afafe8d Compare January 6, 2026 05:50
@saka1-s saka1-s marked this pull request as ready for review January 6, 2026 05:51
@saka1-s saka1-s closed this Jan 6, 2026
@saka1-s saka1-s reopened this Jan 6, 2026

<!-- mandatory arguments when mode is AUTO -->
<arg name="lanelet2_input_file_path" default=""/>
<arg name="lanelet2_input_dir_path" default="/opt/autoware/maps"/>
Copy link
Member

Choose a reason for hiding this comment

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

The PR replaces lanelet2_input_file_path with lanelet2_input_dir_path and introduces assumption that the file names would be "lanelet2_map.osm" and "map_projector_info.yaml", which may not be always true.
Instead, I suggest to change as the following to keep the flexibility to specify the files with different file names.

Suggested change
<arg name="lanelet2_input_dir_path" default="/opt/autoware/maps"/>
<arg name="map_dir_path" default="/opt/autoware/maps"/>
<arg name="lanelet2_input_file_path" default="$(var map_dir_path)/lanelet2_map.osm"/>
<arg name="map_projector_info_file_path" default="$(var map_dir_path)/map_projector_info.yaml"/>

Then, the node could take in two parameters, "lanelet2_input_file_path" and "map_projector_info_file_path", and load them respectively instead of internally generating the full path inside the node.

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.

4 participants