-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.rviz.yaml
45 lines (40 loc) · 1.02 KB
/
compose.rviz.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
34
35
36
37
38
39
40
41
42
43
44
45
# Quick Start
# $ xhost local:root
# $ docker compose -f compose.rviz.yaml up
x-net-config:
&net-config
network_mode: host
ipc: host
env_file: net.env
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:
# if you have NVDIA GPU and NVIDIA Container Toolkit, you can replace
# "cpu-config" with "gpu-config"
rviz:
image: husarion/rviz2:humble
container_name: rviz
<<: [ *net-config, *gpu-config ]
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./config/rosbot.rviz:/root/.rviz2/default.rviz
joy2twist:
image: husarion/joy2twist:galactic
<<: [ *net-config ]
devices:
- /dev/input
volumes:
- ./config/joy2twist.yaml:/joy2twist.yaml
command: >
ros2 launch joy2twist gamepad_controller.launch.py
joy2twist_params_file:=/joy2twist.yaml