From 03a7695cdaaf2cd53b4cae47ac0afc41076822de Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Tue, 4 Oct 2022 15:28:09 +0900 Subject: [PATCH] Update tutorials --- docs/tutorials/index.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/index.md b/docs/tutorials/index.md index 0730953..d6147fb 100644 --- a/docs/tutorials/index.md +++ b/docs/tutorials/index.md @@ -1,4 +1,18 @@ # Tutorials Simulations can be an easy way of verifying the functionality of AutowareV2X before an actual field test. -Here, since we want to test both the sending and receiving of information through AutowareV2X, we will need at least two AutowareV2X instances. For this, we will use a Docker-based environment. \ No newline at end of file +Here, since we want to test both the sending and receiving of information through AutowareV2X, we will need at least two AutowareV2X instances. For this, we will use a Docker-based environment. + +## Using CPM in a simulation-based environment + +1. Create Docker networks +``` +$ docker network create --driver=bridge --subnet=10.0.0.0/16 v2x_net -o com.docker.network.bridge.name="v2x_net" +``` +# Launch Autoware container +rocker --nvidia --x11 --user --volume $HOME/autoware_docker --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda + +$ cd autoware_docker +$ . install/setup.bash +$ ros2 launch autoware_v2x v2x.launch.xml network_interface:=eth1 +``` \ No newline at end of file