Skip to content

Commit

Permalink
add description for map_launch autowarefoundation#333
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ohta authored Aug 12, 2021
1 parent 793679b commit fbd189a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions map_launch/launch/map.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,19 @@ def generate_launch_description():
output='screen',
)

def add_launch_arg(name: str, default_value=None):
return DeclareLaunchArgument(name, default_value=default_value)
def add_launch_arg(name: str, default_value=None, description=None):
return DeclareLaunchArgument(name, default_value=default_value, description=description)

return launch.LaunchDescription([
add_launch_arg('map_path', ''),
add_launch_arg('map_path', '', 'path to map directory'),
add_launch_arg('lanelet2_map_path', [
LaunchConfiguration('map_path'), '/lanelet2_map.osm']),
LaunchConfiguration('map_path'), '/lanelet2_map.osm'],
'path to lanelet2 map file'),
add_launch_arg('pointcloud_map_path', [
LaunchConfiguration('map_path'), '/pointcloud_map.pcd']),
add_launch_arg('use_intra_process', 'false'),
add_launch_arg('use_multithread', 'false'),
LaunchConfiguration('map_path'), '/pointcloud_map.pcd'],
'path to pointcloud map file'),
add_launch_arg('use_intra_process', 'false', 'use ROS2 component container communication'),
add_launch_arg('use_multithread', 'false', 'use multithread'),
SetLaunchConfiguration(
'container_executable',
'component_container',
Expand Down

0 comments on commit fbd189a

Please sign in to comment.