forked from HoangGiang93/mujoco_sim_docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (77 loc) · 1.9 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.4'
networks:
ros-network:
driver: bridge
ipam:
config:
- subnet: ${SUBNET}
services:
ros-core:
tty: true
image: ros-core:${ROS_DISTRO}
build:
context: ./images/ros-core-image/
dockerfile: Dockerfile
args:
ROS_DISTRO: ${ROS_DISTRO}
container_name: ros-core-container
networks:
ros-network:
ipv4_address: ${ROS_IP_CORE}
environment:
- ROS_MASTER_URI=http://${ROS_IP_CORE}:11311
- ROS_IP=${ROS_IP_CORE}
entrypoint: /entrypoint.bash
command: roscore
mujoco-ws:
tty: true
image: mujoco-ws:${ROS_DISTRO}
build:
context: ./images/mujoco-ws-image/
dockerfile: Dockerfile
args:
ROS_DISTRO: ${ROS_DISTRO}
container_name: mujoco-ws-container
networks:
ros-network:
ipv4_address: ${ROS_IP_MUJOCO_WS}
environment:
- ROS_MASTER_URI=http://ros-core:11311
- ROS_IP=${ROS_IP_MUJOCO_WS}
volumes:
- type: bind
source: ./images/mujoco-ws-image/src
target: /home/mujoco_ws/src
entrypoint: /entrypoint.bash
command: sh -c "sleep 1 && roslaunch zoo_mujoco zoo_bringup.launch"
depends_on:
- ros-core
rviz:
# visible output of local simulation as rviz view.
tty: true
image: rviz:${ROS_DISTRO}
build:
context: ./images/rviz-image/
dockerfile: Dockerfile
args:
ROS_DISTRO: ${ROS_DISTRO}
container_name: rviz-container
networks:
ros-network:
ipv4_address: ${ROS_IP_RVIZ}
environment:
- ROS_MASTER_URI=http://ros-core:11311
- DISPLAY
- QT_X11_NO_MITSHM=1 #fix some QT bugs
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./rviz-config:/rviz-config:z
entrypoint: /entrypoint.bash
command:
[
"rosrun",
"rviz",
"rviz",
"--display-config",
"/rviz-config/rviz.rviz"
]