diff --git a/README.md b/README.md index d043a62..4862dd8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,12 @@ This command does three things: This runs the image specified in the `docker-compose.yml`, which by default runs the command `roslaunch mycobot_320 mycobot_320_slider.launch` within the container. +To run other tutorials, set the LAUNCH_TARGET environment variable. For example, to the run the MoveIt tutorial run: + +``` +export LAUNCH_TARGET=mycobot_320_moveit mycobot320_moveit.launch +docker-compose up ros +``` ### Option 2: Local #### 1.1 Pre-Requriements diff --git a/docker-compose.yml b/docker-compose.yml index b3c930e..24a62d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3.4' x-app: &common - command: [ "roslaunch mycobot_280 slider_control.launch" ] + command: [ "roslaunch ${LAUNCH_TARGET:-mycobot_280 slider_control.launch}" ] privileged: true environment: PYTHONUNBUFFERED: 1