-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
166 lines (154 loc) · 6.34 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
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
# Copyright (C) 2018-2021 LEIDOS.
#
# 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.
# Docker Compose Spec Version
version: '2'
services:
roscore:
image: usdotfhwastol/carma-base:carma-system-4.0.0
network_mode: host
container_name: roscore
volumes_from:
- container:carma-config:ro
environment:
- ROS_IP=192.168.88.10
volumes:
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/logs:/opt/carma/logs
restart: always
command: roscore
platform:
image: usdotfhwastol/carma-platform:carma-system-4.0.0
network_mode: host
container_name: platform
runtime: nvidia
volumes_from:
- container:carma-config:ro
environment:
- ROS_IP=192.168.88.10
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
- /opt/carma/maps:/opt/carma/maps
- /opt/carma/routes:/opt/carma/routes
- /opt/carma/yolo:/opt/carma/yolo
command: bash -c 'wait-for-it.sh localhost:11311 -- roslaunch /opt/carma/vehicle/config/carma_docker.launch'
platform_ros2:
image: usdotfhwastol/carma-platform:carma-system-4.0.0
network_mode: host
container_name: platform_ros2
volumes_from:
- container:carma-config:ro
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
- /opt/carma/maps:/opt/carma/maps
- /opt/carma/routes:/opt/carma/routes
- /opt/carma/yolo:/opt/carma/yolo
command: bash -c 'source /opt/carma/install_ros2/setup.bash && ros2 launch /opt/carma/vehicle/config/carma_docker.launch.py'
ros1_bridge:
image: usdotfhwastol/carma-msgs:carma-system-4.0.1
network_mode: host
container_name: ros1_bridge
volumes_from:
- container:carma-config:ro
environment:
- ROS_IP=192.168.88.10
- ROS_MASTER_URI=http://localhost:11311
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
- /opt/carma/maps:/opt/carma/maps
- /opt/carma/routes:/opt/carma/routes
- /opt/carma/yolo:/opt/carma/yolo
command: bash -c 'source ~/.base-image/workspace/install/setup.bash && ros2 run ros1_bridge dynamic_bridge --multi-threads'
lightbar-driver:
image: usdotfhwastol/carma-lightbar-driver:carma-system-4.0.0
network_mode: host
container_name: lightbar-driver
volumes_from:
- container:carma-config:ro
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
environment:
- ROS_IP=192.168.88.10
command: bash -c 'export ROS_NAMESPACE=$${CARMA_INTR_NS} && wait-for-it.sh localhost:11311 -- roslaunch /opt/carma/vehicle/config/drivers.launch drivers:=lightbar_driver'
cohda_dsrc_driver:
image: usdotfhwastol/carma-cohda-dsrc-driver:carma-system-4.0.0
container_name: carma-cohda-dsrc-driver
network_mode: host
volumes_from:
- container:carma-config:ro
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
command: bash -c 'source /opt/carma/install/setup.bash && ros2 launch /opt/carma/vehicle/config/drivers.launch.py drivers:=dsrc_driver'
ssc_controller_driver:
image: usdotfhwastol/carma-ssc-interface-wrapper:carma-system-4.0.0
container_name: ssc_controller_driver
network_mode: host
privileged: true # Grant access to usb for can data
volumes_from:
- container:carma-config:ro
environment:
- ROS_IP=192.168.88.10
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
command: bash -c 'export ROS_NAMESPACE=$${CARMA_INTR_NS} && wait-for-it.sh localhost:11311 -- roslaunch /opt/carma/vehicle/config/drivers.launch drivers:=ssc_interface_wrapper'
novatel_gnss_imu_driver:
image: usdotfhwastol/carma-novatel-oem7-driver-wrapper:carma-system-4.0.0
container_name: carma-novatel-oem7-driver-wrapper
network_mode: host
volumes_from:
- container:carma-config:ro
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
command: bash -c 'source /opt/carma/install/setup.bash && ros2 launch /opt/carma/vehicle/config/drivers.launch.py drivers:=carma_novatel_driver_wrapper'
velodyne_lidar_driver:
image: usdotfhwastol/carma-velodyne-lidar-driver:carma-system-4.0.0
container_name: velodyne-lidar-driver
network_mode: host
volumes_from:
- container:carma-config:ro
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
command: bash -c 'source /opt/carma/install/setup.bash && ros2 launch /opt/carma/vehicle/config/drivers.launch.py drivers:=velodyne_lidar_driver_wrapper'
avt_vimba_camera_driver:
image: usdotfhwastol/carma-avt-vimba-driver:carma-system-4.0.0
container_name: avt-vimba-camera-driver
network_mode: host
volumes_from:
- container:carma-config:ro
environment:
- ROS_IP=192.168.88.10
volumes:
- /opt/carma/logs:/opt/carma/logs
- /opt/carma/.ros:/home/carma/.ros
- /opt/carma/vehicle/calibration:/opt/carma/vehicle/calibration
command: bash -c 'export ROS_NAMESPACE=$${CARMA_INTR_NS} && wait-for-it.sh localhost:11311 -- roslaunch /opt/carma/vehicle/config/drivers.launch drivers:=avt_vimba_camera'
# TODO DelphiESR Front Driver Node
# TODO Delphi Srr2 Front Left Driver Node
# TODO Delphi Srr2 Front Right Driver Node
# TODO Delphi Srr2 Rear Left Driver Node
# TODO Delphi Srr2 Rear Right Driver Node