-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (92 loc) · 2.26 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
version: '2'
networks:
ros:
driver: bridge
services:
ros-master:
image: ros:melodic-ros-core
command: stdbuf -o L roscore
networks:
- ros
restart: always
talker:
image: ros:melodic-ros-core
depends_on:
- ros-master
environment:
- "ROS_MASTER_URI=http://ros-master:11311"
- "ROS_HOSTNAME=talker"
command: stdbuf -o L rostopic pub /chatter std_msgs/String "hello" -r 1
networks:
- ros
restart: always
listener:
image: ros:melodic-ros-core
depends_on:
- ros-master
environment:
- "ROS_MASTER_URI=http://ros-master:11311"
- "ROS_HOSTNAME=listener"
command: stdbuf -o L rostopic hz /chatter
networks:
- ros
restart: always
ros-bridge-server:
build:
context: ./champ
dockerfile: dockerfile
depends_on:
- ros-master
environment:
- "ROS_MASTER_URI=http://ros-master:11311"
- "ROS_HOSTNAME=ros-bridge-server"
volumes:
- ./champ/ros_ws:/home/ros_ws
networks:
- ros
ports:
- "9090:9090"
command: /bin/bash -c "source /home/ros_ws/devel/setup.bash && roslaunch rosbridge_server rosbridge_websocket.launch"
restart: always
pilla-can-control:
build:
context: ./can_control
dockerfile: dockerfile
depends_on:
- ros-bridge-server
volumes:
- ./can_control/src:/home/src
networks:
- ros
command: /bin/bash -c "python3 champ_ws.py"
restart: always
# pilla-champ-controller:
# build:
# context: ./champ
# dockerfile: dockerfile
# depends_on:
# - ros-master
# environment:
# - "ROS_MASTER_URI=http://ros-master:11311"
# - "ROS_HOSTNAME=listener"
# volumes:
# - ./ros_ws:/home/ros_ws
# networks:
# - ros
# command: /bin/bash -c "roslaunch champ_config bringup.launch"
# restart: always
# pilla-champ-teleop:
# build:
# context: ./champ
# dockerfile: dockerfile
# depends_on:
# - ros-master
# environment:
# - "ROS_MASTER_URI=http://ros-master:11311"
# - "ROS_HOSTNAME=listener"
# volumes:
# - ./ros_ws:/home/ros_ws
# networks:
# - ros
# command: /bin/bash -c "roslaunch champ_teleop teleop.launch"
# restart: always