Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Put ROS images on external network
Browse files Browse the repository at this point in the history
  • Loading branch information
amarburg committed Aug 27, 2024
1 parent b3968aa commit 3b33a69
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
10 changes: 9 additions & 1 deletion compose/blue_sim/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- QT_X11_NO_MITSHM=1
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY} # Can be commented out if not used
- PULSE_SERVER=${PULSE_SERVER} # Can be commented out if not used
network_mode: host
# network_mode: host
tty: true
stdin_open: true
privileged: true
Expand All @@ -24,6 +24,8 @@ services:
- ../../../auv_controllers:/home/ubuntu/ws_blue/src/auv_controllers
- ../../../mobile_to_maritime:/home/ubuntu/ws_blue/src/mobile_to_maritime
- ../../../blue:/home/ubuntu/ws_blue/src/blue
networks:
- ros2_backend
# Launch sim directly
entrypoint: [ "/bin/bash", "-i", "-c" ]
command: [ "ros2 launch blue_demos bluerov2_demo.launch.yaml use_sim:=true" ]
Expand All @@ -32,3 +34,9 @@ services:
image: ghcr.io/apl-ocean-engineering/blue-foxglove-bridge-docker:${BLUE_ROS_DISTRO}
ports:
- 8765:8765
networks:
- ros2_backend

networks:
ros2_backend:
external: true
38 changes: 38 additions & 0 deletions compose/cockpit/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
services:
cockpit:
image: bluerobotics/cockpit:v1.0.2
environment:
- DISPLAY=${DISPLAY}
- XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR}
- LIBGL_ALWAYS_SOFTWARE=1
- QT_X11_NO_MITSHM=1
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY} # Can be commented out if not used
- PULSE_SERVER=${PULSE_SERVER} # Can be commented out if not used
tty: true
stdin_open: true
ports:
- 8000:8000
security_opt:
- seccomp:unconfined
- apparmor:unconfined
volumes:
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix
networks:
- ros2_backend

mavlink2rest:
image: patrickelectric/mavlink2rest
ports:
- 8088:8088
- 14551:14551
- 14550:14550
environment:
- MAVLINK_SRC="udpin:blue:14550"
- SERVER_PORT="0.0.0.0:8088"
networks:
- ros2_backend

networks:
ros2_backend:
external: true

0 comments on commit 3b33a69

Please sign in to comment.