-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (76 loc) · 2.45 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
version: "3"
services:
roscore:
image: realm_gc:latest
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- ROS_HOSTNAME=192.168.0.166
network_mode: host
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
command: roscore
vicon_bridge:
image: realm_gc:latest
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- ROS_HOSTNAME=192.168.0.166
network_mode: host
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
depends_on:
- roscore
command: /bin/bash -c '. /catkin_ws/devel/setup.bash && roslaunch --wait vicon_bridge vicon.launch datastream_hostport:=192.168.0.9'
foxglove_bridge:
image: realm_gc:latest
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- ROS_HOSTNAME=192.168.0.166
volumes:
- ./realm_gc:/catkin_ws/src/realm_gc # allows access to the ROS package in the realm directory
network_mode: host
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
depends_on:
- roscore
command: /bin/bash -c 'catkin_make && . /catkin_ws/devel/setup.bash && roslaunch --wait --screen foxglove_bridge foxglove_bridge.launch port:=8765'
robots:
image: realm_gc:latest
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- ROS_HOSTNAME=192.168.0.166
volumes:
- ./realm_gc:/catkin_ws/src/realm_gc # allows access to the ROS package in the realm directory
network_mode: host
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
depends_on:
- roscore
command: /bin/bash -c 'catkin_make && source /catkin_ws/devel/setup.bash && roslaunch --wait rgc tro_all.launch'
bash:
image: realm_gc:latest
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- ROS_HOSTNAME=192.168.0.166
- DISPLAY=${DISPLAY} # allows GUI access
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # allows GUI access
- ./realm_gc:/catkin_ws/src/realm_gc # allows access to the ROS package in the realm directory
network_mode: host # allows access to the host's network (and the robot)
privileged: true # needed for GUI + USB access
stdin_open: true # allows you to attach to a shell in this container
tty: true # allows you to attach to a shell in this container
command: bash