-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
62 lines (59 loc) · 2.04 KB
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
services:
webcam:
image: webcam_ros2
environment:
- DISPLAY=$DISPLAY
- XAUTHORITY=$XAUTHORITY
- XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR
- QT_X11_NO_MITSHM=1
- ROS_DOMAIN_ID=39
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- CYCLONEDDS_URI=file:///etc/ros2/cyclonedds.xml
devices:
- "/dev/video0:/dev/video0"
- "/dev/video4:/dev/video1"
- "/dev/video9:/dev/video2"
network_mode: host
ipc: host
pid: host
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./cyclonedds.xml:/etc/ros2/cyclonedds.xml
entrypoint: /bin/bash
command: -c "source /opt/ros/humble/setup.bash && \
source /ros2_ws_webcam/install/setup.bash && \
ros2 launch launcher_pkg launch_file.py \
video_device1:=/dev/video0 \
video_device2:=/dev/video1 \
video_device3:=/dev/video2 \
image_width:=640 \
image_height:=480 \
framerate:=30 \
transport_on:=false && \
exec bash"
realsense:
image: realsense_ros2
environment:
- DISPLAY=$DISPLAY
- XAUTHORITY=$XAUTHORITY
- XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR
- QT_X11_NO_MITSHM=1
- ROS_DOMAIN_ID=39
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- CYCLONEDDS_URI=file:///etc/ros2/cyclonedds.xml
network_mode: host
ipc: host
pid: host
volumes:
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./cyclonedds.xml:/etc/ros2/cyclonedds.xml
privileged: true
entrypoint: /bin/bash
command: -c "source /opt/ros/humble/setup.bash && \
source /ros2_ws_realsense/install/setup.bash && \
ros2 launch realsense2_camera rs_launch.py \
rgb_camera.color_profile:=640,480,30 \
depth_module.depth_profile:=640,480,30 \
align_depth.enable:=true && \
exec bash"