mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
Adding LAUNCH_TARGET for Docker
This commit is contained in:
parent
2e8c8a71af
commit
709c240889
2 changed files with 7 additions and 1 deletions
|
|
@ -54,6 +54,12 @@ This command does three things:
|
||||||
This runs the image specified in the `docker-compose.yml`, which by default runs
|
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.
|
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
|
### Option 2: Local
|
||||||
#### 1.1 Pre-Requriements
|
#### 1.1 Pre-Requriements
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
|
|
||||||
x-app: &common
|
x-app: &common
|
||||||
command: [ "roslaunch mycobot_320 mycobot_320_slider.launch" ]
|
command: [ "roslaunch ${LAUNCH_TARGET:-mycobot_320 mycobot_320_slider.launch}" ]
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue