-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose-mapping.yaml
134 lines (129 loc) · 5.1 KB
/
docker-compose-mapping.yaml
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
# Copyright (c) 2021 IBM Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
services:
mapping:
build:
context: ./cabot-navigation/docker/localization
environment:
- DISPLAY
- XAUTHORITY=/tmp/.docker.xauth
- NVIDIA_DRIVER_CAPABILITIES=compute,graphics,utility,video,display
- NVIDIA_VISIBLE_DEVICES=all
- OUTPUT_PREFIX
- RUN_CARTOGRAPHER=${RUN_CARTOGRAPHER:-true}
- USE_XSENS
- USE_ESP32
- USE_ARDUINO
- LIDAR_MODEL
- CABOT_MODEL
- PLAYBAG_RATE_CARTOGRAPHER
- PLAYBAG_RATE_PC2_CONVERT
- ROS_LOG_DIR
- RMW_IMPLEMENTATION
- ROS_DOMAIN_ID
# ntrip client
- NTRIP_CLIENT # rtklib, str2str_node, or ntrip_client
- NTRIP_CLIENT_START_AT_LAUNCH=${NTRIP_CLIENT_START_AT_LAUNCH:-0}
- GNSS_NODE_START_AT_LAUNCH=${GNSS_NODE_START_AT_LAUNCH:-1}
- NTRIP_HOST
- NTRIP_PORT=${NTRIP_PORT:-2101}
- NTRIP_MOUNTPOINT
- NTRIP_AUTHENTIFICATE
- NTRIP_USERNAME
- NTRIP_PASSWORD
- NTRIP_STR2STR_RELAY_BACK=${NTRIP_STR2STR_RELAY_BACK:-0}
volumes:
- /dev:/dev
- /sys/devices:/sys/devices
- /var/lib/bluetooth:/var/lib/bluetooth
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- /tmp/.docker.xauth:/tmp/.docker.xauth
# home
- ./docker/home:/home/developer
# code
- ./cabot-common/cabot_common:/home/developer/mapping_ws/src/cabot_common # log_redirector
- ./cabot-common/cabot_msgs:/home/developer/mapping_ws/src/cabot_msgs # cabot_common dependency
- ./cabot-description/cabot_description:/home/developer/mapping_ws/src/cabot_description # robot model
- ./cabot-drivers/cabot_base:/home/developer/mapping_ws/src/cabot_base # hesai_lidar
- ./cabot-drivers/cabot_serial:/home/developer/mapping_ws/src/cabot_serial
- ./cabot-navigation/cabot_mf_localization:/home/developer/mapping_ws/src/cabot_mf_localization
- ./cabot-navigation/mf_localization:/home/developer/mapping_ws/src/mf_localization
- ./cabot-navigation/mf_localization_mapping:/home/developer/mapping_ws/src/mf_localization_mapping
- ./cabot-drivers/wireless_scanner_ros:/home/developer/mapping_ws/src/wireless_scanner_ros
# bridge - if DDS use shared memory
- /dev/shm:/dev/shm
privileged: true
devices:
- /dev/dri
cap_add:
- SYS_ADMIN
- NET_ADMIN
network_mode: host
tty: true
stdin_open: true
working_dir: /home/developer/mapping_ws
command: /launch.sh mapping -C -X
diagnostic:
build:
context: ./cabot-navigation/docker/ros2
environment:
- DISPLAY
- XAUTHORITY=/tmp/.docker.xauth
- NVIDIA_DRIVER_CAPABILITIES=compute,graphics,utility,video,display
- NVIDIA_VISIBLE_DEVICES=all
- ROS_LOG_DIR
volumes:
- ./docker/home:/home/developer
- ./cabot-navigation/cabot:/home/developer/diagnostic_ws/src/cabot
- ./cabot-navigation/cabot_diagnostics:/home/developer/diagnostic_ws/src/cabot_diagnostics
- ./cabot-navigation/cabot_ui:/home/developer/diagnostic_ws/src/cabot_ui
- ./cabot-navigation/cabot-common/cabot_msgs:/home/developer/diagnostic_ws/src/cabot_msgs
- ./cabot-navigation/script:/home/developer/diagnostic_ws/script
# bridge - if DDS use shared memory
- /dev/shm:/dev/shm
privileged: true
network_mode: host
stop_signal: SIGINT
working_dir: /home/developer/diagnostic_ws
command: bash -c "source install/setup.bash && ros2 launch cabot_ui cabot_diagnostic.launch.py config_file:=/home/developer/diagnostic_ws/src/cabot_ui/config/cabot_mapping_diagnostic.yaml"
gui:
extends:
file: docker-compose-common.yaml
service: gui
environment:
- ROS_LOG_DIR
- CABOT_SHOW_GAZEBO_CLIENT=0
- CABOT_SHOW_ROBOT_MONITOR=1
- CABOT_SHOW_ROS2_RVIZ=0
- CABOT_SHOW_ROS2_LOCAL_RVIZ=0
wifi_scan:
extends:
file: docker-compose-common.yaml
service: wifi_scan
profiles:
- wifi_scan
volumes:
- ./docker/home:/home/developer
ble_scan:
extends:
file: docker-compose-common.yaml
service: ble_scan
volumes:
- ./docker/home:/home/developer