Skip to content

Commit

Permalink
Add Docker Compose files for robot drivers and simulation services
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide committed Dec 15, 2024
1 parent 98c4da2 commit 1a69bba
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .docker/compose-robot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: '3'
services:
limo_drivers:
image: lcas.lincoln.ac.uk/lcas/limo_platform_arm64:latest
user: "ros"
privileged: true
command: bash -c "source /opt/ros/lcas/install/setup.bash; (zenoh-bridge-ros2dds -l tcp/0.0.0.0:8888 &); (ros2 launch astra_camera dabai.launch.py &); ros2 launch limo_bringup limo_start.launch.py"
volumes:
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /home/agilex/.Xauthority:/home/ros/.Xauthority
restart: unless-stopped
environment:
- 'DISPLAY=:0'
- 'ROS_LOCALHOST_ONLY=1'
- 'LIBGL_ALWAYS_SOFTWARE=1'
- 'ROS_DOMAIN_ID=0'
- 'NVIDIA_VISIBLE_DEVICES=all'
network_mode: host
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
- apparmor:unconfined
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
19 changes: 19 additions & 0 deletions .docker/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3'
services:
limo_simulation:
image: lcas.lincoln.ac.uk/lcas/limo_platform_amd64:latest
user: "ros"
command: bash -c "source /opt/ros/lcas/install/setup.bash && ros2 launch limo_gazebosim limo_gazebo_diff.launch.py"
restart: unless-stopped
environment:
- 'ROS_LOCALHOST_ONLY=1'
- 'ROS_DOMAIN_ID=0'
ports:
- "5801"
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]

0 comments on commit 1a69bba

Please sign in to comment.