-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dtsim.yml
246 lines (232 loc) · 7.4 KB
/
docker-compose-dtsim.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
services:
mosquitto:
container_name: mqtt-server
image: eclipse-mosquitto
ports:
- 1883:1883
volumes:
- ./config/mqtt:/root/catkin_ws/mosquitto
command: mosquitto -c /root/catkin_ws/mosquitto/mosquitto.conf -p 1883
picarx-dt:
build: .
image: ghcr.io/cau-se/arches-picar-x/picarx:${TAG:-latest}
environment:
- ROS_HOSTNAME=picarx-dt
- ROS_MASTER_URI=http://picarx-dt:11313
- ROS_HOST_PORT=11313
tty: true
ports:
- 11313:11313
command: roscore -p 11313
healthcheck:
test: [ "CMD-SHELL", "curl $${ROS_MASTER_URI} || exit 1" ]
interval: 5s
timeout: 1s
retries: 5
start_period: 1s
shadow-dt:
image: ghcr.io/cau-se/arches-picar-x/picarx:${TAG:-latest}
env_file:
- ./env/picarx-dt.env
tty: true
command: /bin/bash -c "roslaunch arches_core digitalshadow_dt.launch"
depends_on:
picarx-dt:
condition: service_healthy
mqtt-dt:
image: ghcr.io/cau-se/arches-picar-x/arches-mqtt-bridge:${TAG:-latest}
build:
dockerfile: Dockerfile-arches-mqtt-bridge
context: ./ros
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
env_file:
- ./env/picarx-dt.env
tty: true
command: /bin/bash -c "roslaunch arches_mqtt_bridge dt_client.launch host:=$${MQTT_HOST:-192.168.1.2}"
depends_on:
picarx-dt:
condition: service_healthy
motor_left-dt:
build:
dockerfile: Dockerfile
context: ./ros/drivers/dcmotor/
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
image: ghcr.io/cau-se/arches-picar-x/drivers/dcmotor:${TAG:-latest}
env_file:
- ./env/picarx-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/drivers/dcmotor:/root/catkin_ws/src/drivers/dcmotor
command: /bin/bash -c "roslaunch picarx_dcmotor_driver dcmotor_left.launch motor1_i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt:
condition: service_healthy
motor_right-dt:
image: ghcr.io/cau-se/arches-picar-x/drivers/dcmotor:${TAG:-latest}
tty: true
env_file:
- ./env/picarx-dt.env
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/drivers/dcmotor:/root/catkin_ws/src/drivers/dcmotor
command: /bin/bash -c "roslaunch picarx_dcmotor_driver dcmotor_right.launch motor2_i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt:
condition: service_healthy
steering-dt:
image: ghcr.io/cau-se/arches-picar-x/drivers/clutchgear:${TAG:-latest}
build:
dockerfile: Dockerfile
context: ./ros/drivers/clutchgear
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
env_file:
- ./env/picarx-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/drivers/clutchgear:/root/catkin_ws/src/drivers/clutchgear
command: /bin/bash -c "roslaunch picarx_clutchgear_driver ackermann_clutchgear_driver.launch i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt:
condition: service_healthy
ackermann_skill-dt:
image: ghcr.io/cau-se/arches-picar-x/skills/ackermann:${TAG:-latest}
build:
dockerfile: Dockerfile
context: ./ros/skills/ackermann_drive
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
env_file:
- ./env/picarx-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/skills/ackermann_drive:/root/catkin_ws/src/skills/ackermann_drive
command: /bin/bash -c "roslaunch picarx_ackermann_drive ackermann_skill_dt.launch"
depends_on:
picarx-dt:
condition: service_healthy
picarx-dt-gazebo:
build:
context: ./simulation
dockerfile: Dockerfile
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
target: desktop
image: ghcr.io/cau-se/arches-picar-x/picarx-gazebo:${TAG:-latest}
env_file:
- ./env/simulation-dt.env
environment:
- DISPLAY=$DISPLAY
- LIBGL_ALWAYS_INDIRECT=0
- ROS_HOSTNAME=picarx-dt-gazebo
- ROS_MASTER_URI=http://picarx-dt-gazebo:11314
stdin_open: true
tty: true
ports:
- 11314:11314
volumes:
- ${X11PATH:-/tmp/.X11-unix}:/tmp/.X11-unix
- ./core:/root/catkin_ws/src/core
- ./simulation:/root/catkin_ws/src/simulation
command: /bin/bash -c "roslaunch picarx_gazebo picarx-world.launch"
healthcheck:
test: [ "CMD-SHELL", "curl $${ROS_MASTER_URI} || exit 1" ]
interval: 5s
timeout: 1s
retries: 5
start_period: 1s
picarx-dt-gazebo-control:
image: ghcr.io/cau-se/arches-picar-x/picarx-gazebo:${TAG:-latest}
env_file:
- ./env/simulation-dt.env
tty: true
volumes:
- ./core:/root/catkin_ws/src/core
- ./simulation:/root/catkin_ws/src/simulation
command: /bin/bash -c "roslaunch picarx_control picarx_control.launch"
restart: on-failure
depends_on:
picarx-dt-gazebo:
condition: service_healthy
motor_emulator_left-dt:
image: ghcr.io/cau-se/arches-picar-x/emulators/dcmotor:${TAG:-latest}
build:
dockerfile: Dockerfile
context: ./ros/emulators/dcmotor
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
env_file:
- ./env/simulation-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/emulators/dcmotor:/root/catkin_ws/src/emulators/dcmotor
command: /bin/bash -c "roslaunch picarx_dcmotor_emulator dcmotor_emulator_left.launch i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt-gazebo:
condition: service_healthy
motor_emulator_right-dt:
image: ghcr.io/cau-se/arches-picar-x/emulators/dcmotor:${TAG:-latest}
env_file:
- ./env/simulation-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/emulators/dcmotor:/root/catkin_ws/src/emulators/dcmotor
command: /bin/bash -c "roslaunch picarx_dcmotor_emulator dcmotor_emulator_right.launch i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt-gazebo:
condition: service_healthy
steering_emulator-dt:
image: ghcr.io/cau-se/arches-picar-x/emulators/clutchgear:${TAG:-latest}
build:
dockerfile: Dockerfile
context: ./ros/emulators/clutchgear
args:
- TAG=${TAG:-latest}
- ARCH=${ARCH:-}
env_file:
- ./env/simulation-dt.env
tty: true
privileged: true
volumes:
- /sys/class/gpio:/sys/class/gpio
- ${I2C:-/dev/i2c-0}:${I2C:-/dev/i2c-0}
- ./core:/root/catkin_ws/src/core
- ./ros/emulators/clutchgear:/root/catkin_ws/src/emulators/clutchgear
command: /bin/bash -c "roslaunch picarx_clutchgear_emulator ackermann_clutchgear_emulator.launch i2c_port:=$${I2C:-/dev/i2c-0}"
depends_on:
picarx-dt-gazebo:
condition: service_healthy
networks:
picarx:
external: true