-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.pc.yaml
54 lines (48 loc) · 1.22 KB
/
compose.pc.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
46
47
48
49
50
51
52
53
54
x-common-config:
&common-config
network_mode: host
ipc: host
restart: unless-stopped
x-cpu-config:
&cpu-config
env_file: .env.cpu
x-gpu-config:
&gpu-config
runtime: nvidia
env_file: .env.gpu
x-dds-envs:
&dds-envs
env_file: .env.dds
services:
ros2router:
image: husarnet/ros2router:1.6.3
<<: *common-config
environment:
- USER
- ROBOT_NAMESPACE
# ==========================
# envs for Husarnet setup
# ==========================
- ROS_DISCOVERY_SERVER=${ROBOT_NAMESPACE}:11811
- DISCOVERY_SERVER_ID=10 # need to be different as ros2router on ROSbot
# ==========================
# envs for LAN setup
# ==========================
# - ROS_LOCALHOST_ONLY=0
# - HUSARNET_PARTICIPANT_ENABLED=false
rviz:
image: husarion/rviz2:iron-12.4.5-20240104
<<:
- *common-config
- *cpu-config
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./config/rosbot.rviz:/default.rviz
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=/shm-only.xml
- USER=${USER:-root}
command: >
rviz2 -d /default.rviz --ros-args
-r /tf:=tf
-r /tf_static:=tf_static
-r __ns:=/${ROBOT_NAMESPACE}