Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/DeveloperGuide/Tutorials/AddV2I/AddV2I/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Add V2I

## 1. Add V2I prefab

![add prefab](add_prefab.gif)

## 2. Select EGO transform

![select ego transform 1](select_ego_transform_1.png)
![select ego transform 2](select_ego_transform_2.gif)
![select ego transform 3](select_ego_transform_3.png)

## 3. Configure
Copy link

@dmoszynski dmoszynski Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should rather be in the UserGuide, I encourage you to add Components->V2I a description of what it is, what it is responsible for, what it consists of. (take a look as described in other sections and try to fit in - for example here)
In the description of Environment it would also be worth adding that it contains V2I.


Name | Type | Description
------------------------------- | --------- | -----------
Output Hz | int | Topic publication frequency
Ego Vehicle Transform | transform | Ego Vehicle object transform
Ego Distance To Traffic Signals | double | Maximum distance between Traffic Light and Ego
Traffic Signal ID | enum | Possibility to select if as `traffic_signal_id` field in msg is `Relation ID` or `Way ID`
Traffic Signals Topic | string | Topic name

!!! note
V2I feature can be used as Traffic Light ground truth information, and for that usage `Way ID` is supposed to be selected.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/DeveloperGuide/Tutorials/AddV2I/AssignLaneletIDs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Assign Lanelet2 WayID and RelationID to TrafficLight object
Copy link

@dmoszynski dmoszynski Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I think the whole chapter should be called Add V2I and it shouldn't be divided into 2 pages but everything should be here in 3 or more sections (because they don't seem to be long and, in addition, they are rather dependent on each other)

ps. it should be clear to the reader what is needed to work and why (I encourage you to describe it in the UserGuide)


1. Load items from lanelet2 following [the instruction](../../../../DeveloperGuide/Tutorials/AddARandomTraffic/LoadItemsFromLanelet/index.md)

2. Verify if `Traffic Light Lanelet ID` component has been added to `Traffic Light` game objects.
![verify traffic light lanelet id](verify_traffic_light_lanelet_id.png)

3. Verify if `WayID` and `RelationID` has been correctly assigned. You can use [Vector Map Builder](https://tools.tier4.jp) as presented below
![verify lanelet ids](verify_lanelet_ids.png)

## Add manually `Traffic Light Lanelet ID` component

If for some reason, `Traffic Light Lanelet ID` component is not added to `Traffic Light` object.

### 1. Add component manually

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

higher is 1. here ### 1. - better 1. also and short description.

![add component 1](add_component_1.gif)

### 2. Fill Way ID
![add component 2](add_component_2.gif)

### 3. Fill Relation ID
![add component 3](add_component_3.gif)

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ nav:
- Load items from lanelet2: DeveloperGuide/Tutorials/AddARandomTraffic/LoadItemsFromLanelet/index.md
- Add a RandomTraffic: DeveloperGuide/Tutorials/AddARandomTraffic/AddARandomTrafficSimulatorScript/index.md
- Add a TrafficIntersection: DeveloperGuide/Tutorials/AddARandomTraffic/AddATrafficIntersection/index.md
- Add V2I:
- Assign Lanelet2 IDs to TrafficLights: DeveloperGuide/Tutorials/AddV2I/AssignLaneletIDs/index.md
- Add V2I: DeveloperGuide/Tutorials/AddV2I/AddV2I/index.md
- Add a new Vehicle:
- Add a Vehicle: DeveloperGuide/Tutorials/AddANewVehicle/index.md
- Add Visual Elements: DeveloperGuide/Tutorials/AddANewVehicle/AddVisualElements/index.md
Expand Down