-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ismetatabay <[email protected]>
- Loading branch information
1 parent
e1a83d9
commit f822e98
Showing
6 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ nav: | |
- index.md | ||
- Lanelet 2: lanelet2 | ||
- Crosswalk: crosswalk | ||
- Stop Line: stop-line |
Binary file removed
BIN
-254 KB
...-autoware/creating-maps/creating-vector-map/crosswalk/images/LIO-SAM-output.png
Binary file not shown.
Binary file removed
BIN
-554 KB
...egrating-autoware/creating-maps/creating-vector-map/crosswalk/images/system.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
docs/how-to-guides/integrating-autoware/creating-maps/creating-vector-map/stop-line/.pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nav: | ||
- index.md |
64 changes: 64 additions & 0 deletions
64
...uides/integrating-autoware/creating-maps/creating-vector-map/stop-line/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Stop Line | ||
|
||
Behavior velocity planner's [stop line module](https://autowarefoundation.github.io/autoware.universe/main/planning/behavior_velocity_crosswalk_module/) plans velocity | ||
to stop right before stop lines and restart driving after stopped. | ||
In order to operate that, we will add stop line attribute to our lanelet2 map. | ||
|
||
## Creating a stop line regulatory element | ||
|
||
In order to create a stop line on your pointcloud map, please follow these steps: | ||
|
||
1. Please select lanelet to add stop line. | ||
2. Click `Abstraction` button on top panel. | ||
3. Select `Stop Line` from the panel. | ||
4. Click on the desired area for inserting stop line. | ||
|
||
Video Demonstration: | ||
|
||
![type:video](https://youtube.com/embed/cgTSA50Yfyo) | ||
|
||
### Testing created the stop line element with planning simulator | ||
|
||
After the completing of creating the map, we need to save it. | ||
To that please click `File` --> `Export Lanelet2Maps` then download. | ||
|
||
After the download is finished, | ||
we need to put lanelet2 map and pointcloud map on the same location. | ||
The directory structure should be like this: | ||
|
||
```diff | ||
+ <YOUR-MAP-DIRECTORY>/ | ||
+ ├─ pointcloud_map.pcd | ||
+ └─ lanelet2_map.osm | ||
``` | ||
|
||
If your .osm or .pcd map file's name is different from these names, | ||
you need to update autoware.launch.xml: | ||
|
||
```diff | ||
<!-- Map --> | ||
- <arg name="lanelet2_map_file" default="lanelet2_map.osm" description="lanelet2 map file name"/> | ||
+ <arg name="lanelet2_map_file" default="<YOUR-LANELET-MAP-NAME>.osm" description="lanelet2 map file name"/> | ||
- <arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/> | ||
+ <arg name="pointcloud_map_file" default="<YOUR-POINTCLOUD-MAP-NAME>.pcd" description="pointcloud map file name"/> | ||
``` | ||
|
||
Now we are ready to launch the planning simulator: | ||
|
||
```bash | ||
ros2 launch autoware_launch planning_simulator.launch.xml map_path:=<YOUR-MAP-FOLDER-DIR> vehicle_model:=<YOUR-VEHICLE-MODEL> sensor_model:=<YOUR-SENSOR-KIT> | ||
``` | ||
|
||
Example for tutorial_vehicle: | ||
|
||
```bash | ||
ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/Files/autoware_map/tutorial_map/ vehicle_model:=tutorial_vehicle sensor_model:=tutorial_vehicle_sensor_kit vehicle_id:=tutorial_vehicle | ||
``` | ||
|
||
1. Click `2D Pose Estimate` button on rviz or press `P` and give a pose for initialization. | ||
2. Click `2D Goal Pose` button on rviz or press `G` and give a pose for goal point. | ||
3. You can see the stop line marker on the rviz screen. | ||
|
||
Video Demonstration: | ||
|
||
![type:video](https://youtube.com/embed/cAQ_ulo7LHo) |