|
| 1 | +# Map Launch Files |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +The Autoware map stacks start |
| 6 | +launching at `autoware_launch.xml` as we mentioned at [Launch Autoware](../index.md) page. |
| 7 | +The `autoware_launch` package includes `tier4_map_component.launch.xml` |
| 8 | +for starting map launch files invocation from `autoware_launch.xml`. |
| 9 | +This diagram describes some of the Autoware map launch files flow at `autoware_launch` |
| 10 | +and `autoware.universe` packages. |
| 11 | + |
| 12 | +<figure markdown> |
| 13 | + { align=center } |
| 14 | + <figcaption> |
| 15 | + Autoware map launch flow diagram |
| 16 | + </figcaption> |
| 17 | +</figure> |
| 18 | + |
| 19 | +The map.launch.py launch file from the tier4_map_launch package directly includes |
| 20 | +the necessary node definitions for mapping. In the current design of Autoware, the `lanelet2_map_loader`, |
| 21 | +`lanelet2_map_visualization`, `pointcloud_map_loader`, and `vector_map_tf_generator` composable |
| 22 | +nodes are included in the `map_container`. |
| 23 | + |
| 24 | +We don't have many modification options in the map launching files |
| 25 | +(as the parameters are included in the config files). |
| 26 | +However, you can specify the names for your pointcloud and lanelet2 map during the launch |
| 27 | +(the default values are pointcloud_map.pcd and lanelet2_map.osm). |
| 28 | +For instance, if you wish to change your map file names, you can run Autoware using |
| 29 | +the following command line arguments: |
| 30 | + |
| 31 | +```bash |
| 32 | +ros2 launch autoware_launch autoware.launch.xml ... pointcloud_map_file:=<YOUR-PCD-FILE-NAME> lanelet2_map_file:=<YOUR-LANELET2-MAP-NAME> ... |
| 33 | +``` |
| 34 | + |
| 35 | +Or you can change it on your `autoware.launch.xml` launch file: |
| 36 | + |
| 37 | +```diff |
| 38 | +- <arg name="lanelet2_map_file" default="lanelet2_map.osm" description="lanelet2 map file name"/> |
| 39 | ++ <arg name="lanelet2_map_file" default="<YOUR-LANELET2-MAP-NAME>" description="lanelet2 map file name"/> |
| 40 | +- <arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/> |
| 41 | ++ <arg name="pointcloud_map_file" default="<YOUR-PCD-FILE-NAME>" description="pointcloud map file name"/> |
| 42 | +``` |
0 commit comments