Adding LAUNCH_TARGET for Docker

This commit is contained in:
mostlyjason 2021-12-30 07:08:39 -05:00
parent 2e8c8a71af
commit 709c240889
2 changed files with 7 additions and 1 deletions

View file

@ -54,6 +54,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

View file

@ -1,7 +1,7 @@
version: '3.4'
x-app: &common
command: [ "roslaunch mycobot_320 mycobot_320_slider.launch" ]
command: [ "roslaunch ${LAUNCH_TARGET:-mycobot_320 mycobot_320_slider.launch}" ]
privileged: true
environment:
PYTHONUNBUFFERED: 1