forked from husarion/rosbot-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.rosbot.vpn.yaml
83 lines (75 loc) · 2.32 KB
/
compose.rosbot.vpn.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
# Quick Start (at fist stop ROS Master if working on host)
# $ docker compose -f compose.rosbot.hardware.yaml -f compose.rosbot.vpn.yaml up
services:
localization-mapping:
# network_mode: service:husarnet-rosbot
# ipc: service:husarnet-rosbot
network_mode: host
ipc: host
volumes:
- ./secret/dds-config.xml:/dds-config.xml
environment:
# - ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
# - RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-rmw_fastrtps_cpp}
- FASTRTPS_DEFAULT_PROFILES_FILE=/dds-config.xml
navigation:
# network_mode: service:husarnet-rosbot
# ipc: service:husarnet-rosbot
network_mode: host
ipc: host
volumes:
- ./secret/dds-config.xml:/dds-config.xml
environment:
# - ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
# - RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-rmw_fastrtps_cpp}
- FASTRTPS_DEFAULT_PROFILES_FILE=/dds-config.xml
rplidar:
# network_mode: service:husarnet-rosbot
# ipc: service:husarnet-rosbot
network_mode: host
ipc: host
volumes:
- ./secret/dds-config.xml:/dds-config.xml
environment:
# - ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
# - RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-rmw_fastrtps_cpp}
- FASTRTPS_DEFAULT_PROFILES_FILE=/dds-config.xml
bridge:
# network_mode: service:husarnet-rosbot
# ipc: service:husarnet-rosbot
network_mode: host
ipc: host
volumes:
- ./secret/dds-config.xml:/dds-config.xml
environment:
# - ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
# - RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-rmw_fastrtps_cpp}
- FASTRTPS_DEFAULT_PROFILES_FILE=/dds-config.xml
- ROS_IP=127.0.0.1
- ROS_MASTER_URI=http://127.0.0.1:11311
ros-master:
network_mode: host
ipc: host
environment:
- ROS_IP=127.0.0.1
rosbot:
network_mode: host
ipc: host
environment:
- ROS_IP=127.0.0.1
- ROS_MASTER_URI=http://127.0.0.1:11311
# husarnet-rosbot:
# image: husarnet/husarnet
# ipc: shareable
# volumes:
# - /var/lib/husarnet
# - ./secret/id_rosbot:/var/lib/husarnet/id
# sysctls:
# - net.ipv6.conf.all.disable_ipv6=0
# cap_add:
# - NET_ADMIN
# devices:
# - /dev/net/tun
# environment:
# - HOSTNAME=rosbot
# - JOINCODE=${JOINCODE:?find JOINCODE at https://app.husarnet.com}