Skip to content

Commit

Permalink
docs(tutorial): ss2 instructions (#118)
Browse files Browse the repository at this point in the history
* Update and rename rosbag-replay-simulation.md to Installation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Rename Installation.md to installation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update and rename digital-twin-simulation.md to scenario-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update and rename planning-simulation.md to random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update and rename scenario-simulation.md to scenario-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update .pages

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update scenario-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* ci(pre-commit): autofix

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* ci(pre-commit): autofix

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update scenario-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Add files via upload

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update scenario-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/random-test-simulation.md

Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/scenario-test-simulation.md

Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* ci(pre-commit): autofix

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/random-test-simulation.md

Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/scenario-test-simulation.md

Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/random-test-simulation.md

Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Create rosbag-replay-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Create digital-twin-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update .pages

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* changed structure of files

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update installation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update installation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* ci(pre-commit): autofix

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* fix .pages

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* move images

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update installation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update scenario-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update random-test-simulation.md

Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/planning-simulation/random-test-simulation.md

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

* Update docs/tutorials/scenario-simulation/planning-simulation/scenario-test-simulation.md

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Lalith Vipulananthan <lalith.vipulananthan@tier4.jp>
Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
  • Loading branch information
5 people authored May 23, 2022
1 parent 860e118 commit f7ab7ea
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 12 deletions.
3 changes: 1 addition & 2 deletions docs/tutorials/scenario-simulation/.pages
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
nav:
- index.md
- planning-simulation.md
- planning-simulation
- rosbag-replay-simulation.md
- digital-twin-simulation.md
5 changes: 0 additions & 5 deletions docs/tutorials/scenario-simulation/index.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/tutorials/scenario-simulation/planning-simulation.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/tutorials/scenario-simulation/planning-simulation/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
nav:
- installation.md
- scenario-test-simulation.md
- random-test-simulation.md
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Installation

This document contains step-by-step instruction on how to build [AWF Autoware Core/Universe](https://github.com/autowarefoundation/autoware) with `scenario_simulator_v2`.

## Prerequisites

1. [Autoware has been built and installed](https://autowarefoundation.github.io/autoware-documentation/main/installation/)

## How to build

1. Navigate to the Autoware workspace:

```bash
cd autoware
```

2. Import Simulator dependencies:

```bash
vcs import src < simulator.repos
```

3. Install dependent ROS packages:

```bash
source /opt/ros/galactic/setup.bash
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO
```

4. Build the workspace:

```bash
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Random test simulation

!!! note

Running the Scenario Simulator requires some additional steps on top of building and installing Autoware, so make sure that [Scenario Simulator installation](installation.md) has been completed first before proceeding.

## Running steps

1. Move to the workspace directory where Autoware and the Scenario Simulator have been built.

2. Source the workspace setup script:

```bash
source install/setup.bash
```

3. Run the simulation:

```bash
ros2 launch random_test_runner random_test.launch.py \
architecture_type:=awf/universe \
sensor_model:=sample_sensor_kit \
vehicle_model:=sample_vehicle
```

![random_test_runner](images/random_test_runner.png)

For more information about supported parameters, refer to the ![random_test_runner documentation].(<https://github.com/tier4/scenario_simulator_v2/blob/master/test_runner/random_test_runner/Readme.md#node-parameters>)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Scenario test simulation

!!! note

Running the Scenario Simulator requires some additional steps on top of building and installing Autoware, so make sure that [Scenario Simulator installation](installation.md) has been completed first before proceeding.

## Running steps

1. Move to the workspace directory where Autoware and the Scenario Simulator have been built.

2. Source the workspace setup script:

```bash
source install/setup.bash
```

3. Run the simulation:

```bash
ros2 launch scenario_test_runner scenario_test_runner.launch.py \
architecture_type:=awf/universe \
record:=false \
scenario:='$(find-pkg-share scenario_test_runner)/scenario/sample.yaml' \
sensor_model:=sample_sensor_kit \
vehicle_model:=sample_vehicle
```

![scenario_test_runner](images/scenario_test_runner.png)

0 comments on commit f7ab7ea

Please sign in to comment.