@@ -22,7 +22,7 @@ services:
22
22
dockerfile : Dockerfile
23
23
args :
24
24
- TAG=${TAG:-latest}
25
- - ARCH=${ARCH}
25
+ - ARCH=${ARCH:- }
26
26
target : desktop
27
27
image : abarbie/picarx/picarx-gazebo:${TAG}
28
28
env_file :
@@ -38,14 +38,28 @@ services:
38
38
volumes :
39
39
- ./core:/root/catkin_ws/src/core
40
40
- ./simulation:/root/catkin_ws/src/simulation
41
- command : /bin/bash -c "roslaunch picarx_gazebo picarx-world.launch & roslaunch picarx_control picarx_control.launch "
41
+ command : /bin/bash -c "roslaunch picarx_gazebo picarx-world.launch"
42
42
healthcheck :
43
43
test : [ "CMD-SHELL", "curl $${ROS_MASTER_URI} || exit 1" ]
44
44
interval : 5s
45
45
timeout : 1s
46
46
retries : 5
47
47
start_period : 1s
48
48
49
+ picarx-gazebo-control :
50
+ image : abarbie/picarx/picarx-gazebo:${TAG}
51
+ env_file :
52
+ - ./core/dtp/env/simulation.env
53
+ tty : true
54
+ volumes :
55
+ - ./core:/root/catkin_ws/src/core
56
+ - ./simulation:/root/catkin_ws/src/simulation
57
+ command : /bin/bash -c "roslaunch picarx_control picarx_control.launch"
58
+ depends_on :
59
+ picarx-gazebo :
60
+ condition : service_healthy
61
+
62
+
49
63
shadow-dtp :
50
64
image : abarbie/picarx:${TAG:-latest}
51
65
env_file :
@@ -63,7 +77,7 @@ services:
63
77
context : ./ros
64
78
args :
65
79
- TAG=${TAG:-latest}
66
- - ARCH=${ARCH}
80
+ - ARCH=${ARCH:- }
67
81
env_file :
68
82
- ./core/dtp/env/picarx.env
69
83
tty : true
@@ -79,7 +93,7 @@ services:
79
93
context : ./ros/drivers/dcmotor/
80
94
args :
81
95
- TAG=${TAG:-latest}
82
- - ARCH=${ARCH}
96
+ - ARCH=${ARCH:- }
83
97
env_file :
84
98
- ./core/dtp/env/picarx.env
85
99
tty : true
@@ -117,7 +131,7 @@ services:
117
131
context : ./ros/drivers/clutchgear
118
132
args :
119
133
- TAG=${TAG:-latest}
120
- - ARCH=${ARCH}
134
+ - ARCH=${ARCH:- }
121
135
env_file :
122
136
- ./core/dtp/env/picarx.env
123
137
tty : true
@@ -139,7 +153,7 @@ services:
139
153
context : ./ros/skills/ackermann_drive
140
154
args :
141
155
- TAG=${TAG:-latest}
142
- - ARCH=${ARCH}
156
+ - ARCH=${ARCH:- }
143
157
env_file :
144
158
- ./core/dtp/env/picarx.env
145
159
tty : true
@@ -162,7 +176,7 @@ services:
162
176
context : ./ros/emulators/dcmotor
163
177
args :
164
178
- TAG=${TAG:-latest}
165
- - ARCH=${ARCH}
179
+ - ARCH=${ARCH:- }
166
180
env_file :
167
181
- ./core/dtp/env/simulation.env
168
182
tty : true
@@ -201,7 +215,7 @@ services:
201
215
context : ./ros/emulators/clutchgear
202
216
args :
203
217
- TAG=${TAG:-latest}
204
- - ARCH=${ARCH}
218
+ - ARCH=${ARCH:- }
205
219
env_file :
206
220
- ./core/dtp/env/simulation.env
207
221
tty : true
0 commit comments