forked from husarion/rosbot-telepresence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
64 lines (59 loc) · 1.64 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
x-common-config:
&common-config
network_mode: host
ipc: host
restart: unless-stopped
x-ros-envs:
&ros-envs
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=/shm-only.xml
- ROBOT_NAMESPACE=${ROBOT_NAMESPACE:-robot}
- USER
services:
ros2router:
image: husarnet/ros2router:1.6.3
<<: *common-config
volumes:
- ./filter.yaml:/filter.yaml
environment:
- VIDEO_CODEC=theora # can be `theora` or `compressed`
- ROBOT_NAMESPACE=${ROBOT_NAMESPACE:-robot}
- USER
# ==========================
# envs for Husarnet setup
# ==========================
- DISCOVERY_SERVER_LISTENING_PORT=11811
- DISCOVERY_SERVER_ID=0
# ==========================
# envs for LAN setup
# ==========================
# - ROS_LOCALHOST_ONLY=0
# - HUSARNET_PARTICIPANT_ENABLED=false
# entrypoint: tail -f /dev/null
rosbot:
image: husarion/rosbot:humble-0.12.0-20240104
<<:
- *common-config
- *ros-envs
devices:
- ${SERIAL_PORT:?err}
# - /dev/bus/usb/ # FTDI
command: >
ros2 launch rosbot_bringup combined.launch.py
mecanum:=${MECANUM:-False}
serial_port:=$SERIAL_PORT
namespace:=${ROBOT_NAMESPACE:-robot}
serial_baudrate:=576000
astra:
image: husarion/astra:humble-1.1.0-20240104
<<:
- *common-config
- *ros-envs
devices:
- /dev/bus/usb/
volumes:
- ./params/astra.yaml:/husarion_utils/astra_params.yaml
command: >
ros2 launch /husarion_utils/astra.launch.py
robot_namespace:=${ROBOT_NAMESPACE:-robot}
device_namespace:=camera