Skip to content

Commit acda2fe

Browse files
docs(launch-autoware): add how to launch yabloc or eagleye (#411)
* add yabloc page but it's empty Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * update yabloc-integration-guide Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * style(pre-commit): autofix * add what is YabLoc Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * moved yabloc and eagleye docs under launch-autoware Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * WIP add some descriptions in Japanese Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * WIP update Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * modified structure Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * translate in english Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * applied pre-commit Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * fix typo Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * fix typo again Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * reflected reviews Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * removed yabloc sub-page Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * add comprehensive table Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * use markdown rather than html Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * i dont know why the table does not appear Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * update table Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * today's CI is annoying Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> * split table Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> --------- Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1c3f536 commit acda2fe

17 files changed

Lines changed: 377 additions & 135 deletions

docs/how-to-guides/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
- [Determining component dependencies](others/determining-component-dependencies.md)
1414
- [Advanced usage of colcon](others/advanced-usage-of-colcon.md)
1515
- [Applying Clang-Tidy to ROS packages](others/applying-clang-tidy-to-ros-packages.md)
16-
- [Using Eagleye in Autoware](others/eagleye-integration-guide.md)
1716
- [Defining temporal performance metrics on components](others/defining-temporal-performance-metrics.md)
1817

1918
TODO: Write the following contents.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ nav:
44
- 2. Creating vehicle and sensor description: creating-vehicle-and-sensor-description
55
- 3. Creating vehicle interface: creating-vehicle-interface-package
66
- 4. Creating maps: creating-maps
7-
- 5. Launch Autoware: launch-autoware.md
7+
- 5. Launch Autoware: launch-autoware
88
- 6. Tuning parameters and performance: tuning-parameters-and-performance

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

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nav:
2+
- index.md
3+
- Localization mode: localization-mode
4+
- Perception mode: perception.md
15.4 KB
Loading
15.5 KB
Loading
41 KB
Loading
40.2 KB
Loading
456 KB
Loading
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Launch Autoware
2+
3+
!!! warning
4+
5+
Under Construction
6+
7+
This section explains how to run your vehicle with Autoware.
8+
9+
## Install Autoware
10+
11+
Follow the [installation steps of Autoware](../../../installation/).
12+
13+
## Launch Autoware
14+
15+
Launch Autoware with the following command:
16+
17+
```bash
18+
ros2 launch autoware_launch autoware.launch.xml vehicle_model:=YOUR_VEHICLE sensor_kit:=YOUR_SENSOR_KIT map_path:=/PATH/TO/YOUR/MAP
19+
```
20+
21+
It is possible to specify which components to launch using command-line arguments.
22+
For example, if you don't need to launch perception, planning, and control for localization debug, you can launch the following:
23+
24+
```bash
25+
ros2 launch autoware_launch autoware.launch.xml vehicle_model:=YOUR_VEHICLE sensor_kit:=YOUR_SENSOR_KIT map_path:=/PATH/TO/YOUR/MAP \
26+
launch_perception:=false \
27+
launch_planning:=false \
28+
launch_control:=false
29+
```
30+
31+
The basic command-line options are documented in [autoware.launch.xml](https://github.com/autowarefoundation/autoware_launch/blob/main/autoware_launch/launch/autoware.launch.xml).
32+
33+
There are options available to switch between different methods for some component.
34+
For example, by specifying `localization_mode` or `perception_mode`, you can switch localization and perception methods, respectively.
35+
These options allow you to choose the desired algorithms or sensor configurations for the respective functionalities.
36+
37+
For options on eagleye component, please refer to the sub-pages.
38+
39+
- [localization-mode](localization-mode/index.md)
40+
- [perception-mode](perception.md)
41+
42+
## Set initial pose
43+
44+
If GNSS is available, Autoware automatically initializes the vehicle's pose.
45+
46+
If not or if the automatic initialization returns an incorrect position, you need to set the initial pose using the RViz GUI.
47+
48+
1. Click the 2D Pose estimate button in the toolbar, or hit the P key
49+
50+
![2D Pose estimate](images/2d_pose_estimate.png)
51+
52+
2. In the 3D View pane, click and hold the left mouse button, and then drag to set the direction for the initial pose.
53+
54+
## Set goal pose
55+
56+
Set a goal pose for the ego vehicle.
57+
58+
1. Click the 2D Nav Goal button in the toolbar, or hit the G key
59+
60+
![2D Pose estimate](images/2d_goal_pose.png)
61+
62+
2. In the 3D View pane, click and hold the left mouse button, and then drag to set the direction for the goal pose.
63+
If successful, you will see the calculated planning path on RViz.
64+
65+
![route planning](images/route_planning_is_complete.png){width="800"}
66+
67+
## Engage
68+
69+
In your terminal, execute the following command.
70+
71+
```bash
72+
source ~/autoware.YOURS/install/setup.bash
73+
ros2 topic pub /autoware.YOURS/engage autoware_auto_vehicle_msgs/msg/Engage "engage: true" -1
74+
```
75+
76+
You can also engage via RViz with "AutowareStatePanel".
77+
The panel can be found in `Panels > Add New Panel > tier4_state_rviz_plugin > AutowareStatePanel`.
78+
79+
Once the route is computed, the "AUTO" button becomes active. Pressing the AUTO button engages the autonomous driving mode.
80+
81+
![autoware state panel](images/autoware_state_panel_before.png)
82+
83+
Now the vehicle should drive along the calculated path!
84+
85+
During the autonomous driving, the StatePanel appears as shown in the image below. Pressing the "STOP" button allows you to stop the vehicle.
86+
87+
![autoware state panel](images/autoware_state_panel_after.png)

0 commit comments

Comments
 (0)