Skip to content

Commit c2944a9

Browse files
committed
add launch control page
Signed-off-by: ismetatabay <[email protected]>
1 parent 2045a6c commit c2944a9

File tree

5 files changed

+93
-11
lines changed

5 files changed

+93
-11
lines changed

docs/how-to-guides/integrating-autoware/launch-autoware/.pages

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ nav:
77
- Launch localization: localization
88
- Launch perception: perception
99
- Launch planning: planning
10+
- Launch control: control

docs/how-to-guides/integrating-autoware/launch-autoware/control/images/control_launch_flow.svg

+4
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Control Launch Files
2+
3+
## Overview
4+
5+
The Autoware control stacks start
6+
launching at `autoware_launch.xml` as mentioned on the [Launch Autoware](../index.md) page.
7+
The `autoware_launch` package includes `tier4_control_component.launch.xml`
8+
for initiating control launch files invocation from `autoware_launch.xml`.
9+
The diagram below illustrates the flow of Autoware control launch files within the autoware_launch and autoware.universe packages.
10+
11+
<figure markdown>
12+
![control-launch-flow](images/control_launch_flow.svg){ align=center }
13+
<figcaption>
14+
Autoware control launch flow diagram
15+
</figcaption>
16+
</figure>
17+
18+
!!! note
19+
20+
The Autoware project is a large project.
21+
Therefore, as we manage the Autoware project, we utilize specific
22+
arguments in the launch files.
23+
ROS 2 offers an argument-overriding feature for these launch files.
24+
Please refer to [the official ROS 2 launch documentation](https://docs.ros.org/en/humble/Tutorials/Intermediate/Launch/Using-ROS2-Launch-For-Large-Projects.html#parameter-overrides) for further information.
25+
For instance,
26+
if we define an argument at the top-level launch,
27+
it will override the value on lower-level launches.
28+
29+
## tier4_control_component.launch.xml
30+
31+
The tier4_control_component.launch.xml launch file is the main control component launch in the autoware_launch package.
32+
This launch file calls control.launch.xml from the [tier4_control_launch](https://github.com/autowarefoundation/autoware.universe/tree/main/launch/tier4_control_launch) package
33+
within the autoware.universe repository.
34+
We can modify control launch arguments in tier4_control_component.launch.xml.
35+
Additionally,
36+
we can add any other necessary arguments
37+
that need adjustment since tier4_control_component.launch.xml serves as the top-level launch file for other control launch files.
38+
Here are some predefined control launch arguments:
39+
40+
- **`lateral_controller_mode:`** This argument determines
41+
the lateral controller algorithm.
42+
The default value is `mpc`.
43+
To change it to pure pursuit,
44+
make the following update in your `tier4_control_component.launch.xml` file:
45+
46+
```diff
47+
- <arg name="lateral_controller_mode" default="mpc"/>
48+
+ <arg name="lateral_controller_mode" default="pure_pursuit"/>
49+
```
50+
51+
- **`enable_autonomous_emergency_braking:`** This argument enables autonomous emergency
52+
braking under specific conditions.
53+
Please refer to the [Autonomous emergency braking (AEB)](https://autowarefoundation.github.io/autoware.universe/main/control/autonomous_emergency_braking/) page for
54+
more information.
55+
To enable it, update the value in the `tier4_control_component.launch.xml` file:
56+
57+
```diff
58+
- <arg name="enable_autonomous_emergency_braking" default="false"/>
59+
+ <arg name="enable_autonomous_emergency_braking" default="true"/>
60+
```
61+
62+
- **`enable_predicted_path_checker:`** This argument enables the predicted path checker module.
63+
Please refer to the [Predicted Path Checker](https://autowarefoundation.github.io/autoware.universe/main/control/predicted_path_checker/) page for
64+
more information.
65+
To enable it, update the value in the `tier4_control_component.launch.xml` file:
66+
67+
```diff
68+
- <arg name="enable_predicted_path_checker" default="false"/>
69+
+ <arg name="enable_predicted_path_checker" default="true"/>
70+
```
71+
72+
!!! note
73+
74+
You can also use this arguments as command line arguments:
75+
```bash
76+
ros2 launch autoware_launch autoware.launch.xml ... enable_predicted_path_checker:=true lateral_controller_mode:=pure_pursuit ...
77+
```
78+
79+
The predefined arguments in tier4_control_component.launch.xml have been explained above.
80+
However, numerous control arguments are included in the autoware_launch control config parameters.

docs/how-to-guides/integrating-autoware/launch-autoware/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We will explain how to run and launch autoware with these modules:
1010
- [Localization](./localization)
1111
- [Perception](./perception)
1212
- [Planning](./planning)
13-
- Control
13+
- [Control](./control)
1414

1515
## Pre-requirements of launching Autoware with real vehicle
1616

docs/how-to-guides/integrating-autoware/launch-autoware/planning/index.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Overview
44

55
The Autoware planning stacks start
6-
launching at `autoware_launch.xml` as we mentioned at [Launch Autoware](../index.md) page.
6+
launching at `autoware_launch.xml` as mentioned on the [Launch Autoware](../index.md) page.
77
The `autoware_launch` package includes `tier4_planning_component.launch.xml`
8-
for starting planning launch files invocation from `autoware_launch.xml`.
9-
This diagram describes some of the Autoware planning launch files flow at `autoware_launch` and `autoware.universe` packages.
8+
for initiating planning launch files invocation from `autoware_launch.xml`.
9+
The diagram below illustrates the flow of Autoware planning launch files within the autoware_launch and autoware.universe packages.
1010

1111
<figure markdown>
1212
![planning-launch-flow](images/planning_launch_flow.svg){ align=center }
@@ -42,8 +42,7 @@ Here are some predefined planning launch arguments:
4242
and `use_all_predicted_path` options for Autoware for experimental lane changing
4343
(for more information, please refer to [lane_change documentation](https://autowarefoundation.github.io/autoware.universe/main/planning/behavior_path_planner/docs/behavior_path_planner_lane_change_design/)).
4444
The default value is True.
45-
If you want to set it to False, you can make the change in the
46-
tier4_planning_component.launch.xml file:
45+
To set it to False, make the following change in the `tier4_planning_component.launch.xml` file:
4746

4847
```diff
4948
- <arg name="use_experimental_lane_change_function" default="true"/>
@@ -53,8 +52,7 @@ Here are some predefined planning launch arguments:
5352
- **`cruise_planner_type:`** There are two types of cruise planners in Autoware: [obstacle_stop_planner](https://autowarefoundation.github.io/autoware.universe/main/planning/obstacle_stop_planner/)
5453
and [obstacle_cruise_planner](https://autowarefoundation.github.io/autoware.universe/main/planning/obstacle_cruise_planner/). For specifications on these cruise planner types,
5554
please refer to the package documentation. The default cruise planner is `obstacle_stop_planner`.
56-
If you wish to change it to `obstacle_cruise_planner`, you can do
57-
in the `tier4_planning_component`.launch.xml file:
55+
To change it to obstacle_cruise_planner, update the argument value in the `tier4_planning_component.launch.xml` file:
5856

5957
```diff
6058
- <arg name="cruise_planner_type" default="obstacle_stop_planner" description="options: obstacle_stop_planner, obstacle_cruise_planner, none"/>
@@ -88,6 +86,5 @@ Here are some predefined planning launch arguments:
8886
ros2 launch autoware_launch autoware.launch.xml ... use_surround_obstacle_check:=false velocity_smoother_type:=L2 ...
8987
```
9088

91-
The predefined arguments in `tier4_planning_component.launch.xml`
92-
have been explained above, but there are numerous planning arguments
93-
included in the `autoware_launch` planning config parameters.
89+
The predefined arguments in tier4_planning_component.launch.xml have been explained above.
90+
However, numerous planning arguments are included in the autoware_launch planning config parameters.

0 commit comments

Comments
 (0)