1
1
services :
2
2
picarx-ds :
3
- build : .
4
3
image : abarbie/picarx:${TAG}
5
4
environment :
6
5
- ROS_HOSTNAME=picarx-ds
6
+ - ROS_MASTER_URI=http://picarx-ds:11311
7
+ - ROS_HOST_PORT=11311
7
8
tty : true
8
9
ports :
9
10
- 11311:11311
10
11
command : roscore
11
- depends_on :
12
- picarx-ds :
13
- condition : service_healthy
12
+ healthcheck :
13
+ test : [ "CMD-SHELL", "curl $${ROS_MASTER_URI} || exit 1" ]
14
+ interval : 5s
15
+ timeout : 1s
16
+ retries : 5
17
+ start_period : 1s
14
18
15
19
picarx-gazebo :
16
20
build :
17
21
context : ./simulation
18
22
dockerfile : Dockerfile
19
23
target : desktop
24
+ args :
25
+ - TAG=${TAG}
20
26
image : abarbie/picarx/picarx-gazebo:${TAG}
21
27
env_file :
22
28
- ./core/dtp/env/simulation.env
23
29
environment :
24
30
- DISPLAY=host.docker.internal:0.0
25
31
- LIBGL_ALWAYS_INDIRECT=0
26
32
- ROS_HOSTNAME=picarx-gazebo
33
+ - ROS_MASTER_URI=http://picarx-gazebo:11312
27
34
tty : true
28
35
ports :
29
36
- 11312:11312
@@ -64,8 +71,12 @@ services:
64
71
condition : service_healthy
65
72
66
73
motor_left-dtp :
67
- build : ./ros/drivers/dcmotor
68
74
image : abarbie/picarx/drivers/dcmotor:${TAG}
75
+ build :
76
+ dockerfile : Dockerfile
77
+ context : ./ros/drivers/dcmotor/
78
+ args :
79
+ - TAG=${TAG}
69
80
env_file :
70
81
- ./core/dtp/env/picarx.env
71
82
tty : true
@@ -157,7 +168,7 @@ services:
157
168
- ./ros/emulators/dcmotor:/root/catkin_ws/src/emulators/dcmotor
158
169
command : /bin/bash -c "roslaunch picarx_dcmotor_emulator dcmotor_emulator_left.launch"
159
170
depends_on :
160
- picarx-ds :
171
+ picarx-gazebo :
161
172
condition : service_healthy
162
173
163
174
motor_emulator_right-dtp :
@@ -174,7 +185,7 @@ services:
174
185
command : /bin/bash -c "roslaunch picarx_dcmotor_emulator dcmotor_emulator_right.launch"
175
186
176
187
depends_on :
177
- picarx-ds :
188
+ picarx-gazebo :
178
189
condition : service_healthy
179
190
180
191
steering_emulator-dtp :
@@ -195,7 +206,7 @@ services:
195
206
- ./ros/emulators/clutchgear:/root/catkin_ws/src/emulators/clutchgear
196
207
command : /bin/bash -c "roslaunch picarx_clutchgear_emulator ackermann_clutchgear_emulator.launch"
197
208
depends_on :
198
- picarx-ds :
209
+ picarx-gazebo :
199
210
condition : service_healthy
200
211
201
212
networks :
0 commit comments