-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
33 lines (30 loc) · 963 Bytes
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Quick Start
#
# 1. run `xhost +local:docker && docker compose up` on the laptop
# 2. open a shell inside a docker container `docker compose exec -it rosbot bash`
# 2. run for e. g. `ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r __ns:=/robot1` inside the container
x-gpu-config:
&gpu-config
runtime: nvidia
environment:
- DISPLAY=${DISPLAY:?err}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
x-cpu-config:
&cpu-config
environment:
- DISPLAY=${DISPLAY:?err}
- LIBGL_ALWAYS_SOFTWARE=1
services:
rosbot:
image: husarion/rosbot-gazebo:humble-0.13.1-20240201
# uncomment to use CPU
<<: [ *cpu-config]
# uncomment to use NVIDIA GPU
# <<: [ *gpu-config]
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
command: >
ros2 launch rosbot_gazebo simulation.launch.py
mecanum:=${MECANUM:-False}
robots:="robot1={y: -4.0}; robot2={y: -2.0}; robot3={y: 4.0};"