-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yaml
80 lines (74 loc) · 1.92 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
x-common-config:
&common-config
network_mode: host
ipc: host
restart: unless-stopped
x-dds-envs:
&dds-envs
env_file: .env.dds
services:
ros2router:
image: husarnet/ros2router:1.6.3
<<: *common-config
volumes:
- ./filter.yaml:/filter.yaml
environment:
- USER
- ROBOT_NAMESPACE
# ==========================
# 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
rosbot:
image: husarion/rosbot:humble-0.13.1-20240201
<<:
- *common-config
- *dds-envs
devices:
- ${SERIAL_PORT:?err}
environment:
- ROBOT_NAMESPACE
command: >
ros2 launch rosbot_bringup combined.launch.py
mecanum:=${MECANUM:-False}
serial_port:=$SERIAL_PORT
serial_baudrate:=576000
rplidar:
image: husarion/rplidar:humble-1.0.1-20240104
<<:
- *common-config
- *dds-envs
devices:
- /dev/ttyRPLIDAR:/dev/ttyUSB0
environment:
- ROBOT_NAMESPACE
command: >
ros2 launch /husarion_utils/rplidar.launch.py
serial_baudrate:=${LIDAR_BAUDRATE:-256000}
serial_port:=/dev/ttyUSB0
navigation:
image: husarion/navigation2:humble-1.1.12-20240123
<<:
- *common-config
- *dds-envs
depends_on:
rplidar: { condition: service_healthy }
rosbot: { condition: service_healthy }
volumes:
- ./config/nav2_${CONTROLLER:-rpp}_params.yaml:/params.yaml
- ./maps:/maps
environment:
- SAVE_MAP_PERIOD
- ROBOT_NAMESPACE
command: >
ros2 launch /husarion_utils/bringup_launch.py
slam:=${SLAM:-True}
params_file:=/params.yaml
map:=/maps/map.yaml
use_sim_time:=False