forked from smartmicro/smartmicro_ros2_radars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (99 loc) · 3.57 KB
/
docker-compose.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
# Copyright (c) 2021, s.m.s, smart microwave sensors GmbH, Brunswick, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "3"
services:
build_simulator:
image: umrr-ros:latest
volumes:
- .:/code
entrypoint: ["/code/simulator/simulation/build_simulator.sh"]
sensor_0:
depends_on:
build_simulator:
condition: service_completed_successfully
image: umrr-ros:latest
volumes:
- .:/code
environment:
- SMART_ACCESS_CFG_FILE_PATH=/code/simulator/config_umrr11/com_lib_config.json
- LD_LIBRARY_PATH=/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9
entrypoint: ["/code/simulator/simulation/out/bin/simulator"]
command: ["4", "1", "1", "A"]
networks:
device_network:
ipv4_address: 172.22.10.101
sensor_1:
depends_on:
build_simulator:
condition: service_completed_successfully
image: umrr-ros:latest
volumes:
- .:/code
environment:
- SMART_ACCESS_CFG_FILE_PATH=/code/simulator/config_umrr96/com_lib_config.json
- LD_LIBRARY_PATH=/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9
entrypoint: ["/code/simulator/simulation/out/bin/simulator"]
command: ["5", "1", "2", "A"]
networks:
device_network:
ipv4_address: 172.22.10.102
sensor_2:
depends_on:
build_simulator:
condition: service_completed_successfully
image: umrr-ros:latest
volumes:
- .:/code
environment:
- SMART_ACCESS_CFG_FILE_PATH=/code/simulator/config_umrr9f/com_lib_config.json
- LD_LIBRARY_PATH=/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9
entrypoint: ["/code/simulator/simulation/out/bin/simulator"]
command: ["9", "2", "1", "C"]
networks:
device_network:
ipv4_address: 172.22.10.103
sensor_3:
depends_on:
build_simulator:
condition: service_completed_successfully
image: umrr-ros:latest
volumes:
- .:/code
environment:
- SMART_ACCESS_CFG_FILE_PATH=/code/simulator/config_umrr9d/com_lib_config.json
- LD_LIBRARY_PATH=/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9
entrypoint: ["/code/simulator/simulation/out/bin/simulator"]
command: ["11", "1", "0", "C"]
networks:
device_network:
ipv4_address: 172.22.10.104
ros_node:
image: umrr-ros:latest
depends_on:
- "sensor_0"
- "sensor_1"
- "sensor_2"
- "sensor_3"
volumes:
- .:/code
command: ["colcon", "test", "--packages-above", "umrr_ros2_driver"]
networks:
device_network:
ipv4_address: 172.22.10.100
networks:
device_network:
ipam:
driver: default
config:
- subnet: 172.22.10.0/24