-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (65 loc) · 1.86 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
version: '3'
# version de docker-compose utilise
# urls:
# - https://docs.docker.com/compose/compose-file/#volume-configuration-reference
# - https://www.linux.com/learn/docker-volumes-and-networks-compose
services:
ros_master:
image: ros:indigo-ros-core
container_name: rosnode_master
hostname: rosmaster
ports:
- "11311:11311"
command:
- roscore
# Definition du ROS Node pour l'Arduino
ros_li3ds_arduino:
container_name: rosnode_li3ds_arduino
hostname: ros_li3ds_arduino
image: li3ds/arduino:latest
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
depends_on:
- "ros_master"
environment:
- "ROS_HOSTNAME=ros_li3ds_arduino"
- "ROS_MASTER_URI=http://ros_master:11311"
command: rosrun rosserial_python serial_node.py /dev/ttyACM0 _baud:=115200
ros_li3ds_ins:
container_name: rosnode_li3ds_ins
hostname: ros_li3ds_ins
image: li3ds/ins:latest
#devices:
# - "/dev/ttyUSB0:/dev/ttyUSB0"
#
privileged: true
volumes:
- "/dev/bus/usb:/dev/bus/usb"
depends_on:
- "ros_master"
environment:
- "ROS_HOSTNAME=rosnode_li3ds_ins"
- "ROS_MASTER_URI=http://ros_master:11311"
volumes:
- li3ds_catkin_ws:/catkin_ws
command: /root/run.sh
ros_li3ds_laser:
container_name: rosnode_li3ds_laser
hostname: ros_li3ds_laser
image: li3ds/laser:latest
depends_on:
- "ros_master"
ports:
- "2368:2368/udp" # Data Port VLP-16 (by default)
- "8308:8308/udp" # Telemetry Port VLP-16 (by default)
environment:
- "ROS_HOSTNAME=rosnode_li3ds_laser"
- "ROS_MASTER_URI=http://ros_master:11311"
volumes:
- li3ds_catkin_ws:/catkin_ws
command: /root/run.sh
# url: https://docs.docker.com/compose/compose-file/
# -> external
volumes:
li3ds_catkin_ws:
external: true