feature/multi-robots-types #12

Merged
aqua3 merged 20 commits from feature/multi-robots-types into master 2024-12-05 11:36:57 -04:00
1 changed files with 20 additions and 26 deletions
Showing only changes of commit ad40afac9b - Show all commits

View File

@ -1,5 +1,3 @@
version: "3.8"
services: services:
gui-tools: gui-tools:
env_file: env_file:
@ -9,44 +7,40 @@ services:
environment: environment:
# Display settings # Display settings
- DISPLAY=${DISPLAY} DISPLAY: "${DISPLAY}"
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY} WAYLAND_DISPLAY: "${WAYLAND_DISPLAY}"
# - QT_QPA_PLATFORM=${QT_QPA_PLATFORM:-xcb} # Default to X11 # Uncomment below if using X11
# If running with Wayland # QT_QPA_PLATFORM: "${QT_QPA_PLATFORM:-xcb}"
- XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} XDG_RUNTIME_DIR: "${XDG_RUNTIME_DIR}"
- ROS_MASTER_URI=http://ros-master:11311 ROS_MASTER_URI: "http://ros-master:11311"
# - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
# - NVIDIA_VISIBLE_DEVICES=all
volumes: volumes:
# X11 socket # X11 socket
- /tmp/.X11-unix:/tmp/.X11-unix - /tmp/.X11-unix:/tmp/.X11-unix
- ${XAUTHORITY:-~/.Xauthority}:/root/.Xauthority - ${XAUTHORITY:-~/.Xauthority}:/root/.Xauthority
# Wayland socket # Wayland socket
#- ${XDG_RUNTIME_DIR}/wayland-0:${XDG_RUNTIME_DIR}/wayland-0 #- ${XDG_RUNTIME_DIR}/wayland-0:${XDG_RUNTIME_DIR}/wayland-0
# Allow access to the host's GPU # Access to GPU devices
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
#Auto reload on code changes # Code and configuration
- ./guiTools/spiri_sdk_guitools/:/app/spiri_sdk_guitools/ - ./guiTools/spiri_sdk_guitools/:/app/spiri_sdk_guitools/
# Enable launching the SDK from the SDK
# - ./:/app/sdk
- ./robots:/robots - ./robots:/robots
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
devices: devices:
# Provide access to GPU devices # Provide access to GPU devices (supports non-NVIDIA GPUs)
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
network_mode: host network_mode: host
ports: ports:
- 8923:8923 - 8923:8923
ipc: host ipc: host
#user: "${UID}:${GID}" privileged: true # Required for GPU access
privileged: true # Allow privileged access if necessary (e.g., for GPU access)
# restart: unless-stopped
# command: /bin/bash -c "source /opt/ros/foxy/setup.bash && rvis2" # Replace with the actual command to run Gazebo Ignition
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=all
# deploy:
# resources:
# reservations:
# devices:
# - driver: cdi # Optional for advanced resource scheduling
# device_ids:
# - "all" # Use "all" for all available GPUs