add gazebo-sim address, add --no-mavproxy

This commit is contained in:
Burak Ozter 2024-10-18 14:08:48 -03:00
parent 9cf8bfca88
commit f34cfe98f2
7 changed files with 21 additions and 17 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
.gitmodules vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
background.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 834 KiB

After

Width:  |  Height:  |  Size: 834 KiB

38
docker-compose.yml Normal file → Executable file
View File

@ -3,7 +3,7 @@ version: '3.8'
services: services:
gui-tools: gui-tools:
# runtime: nvidia runtime: nvidia
build: build:
context: ./guiTools/ context: ./guiTools/
@ -22,7 +22,7 @@ services:
- /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 # Allow access to the host's GPU
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
devices: devices:
@ -35,22 +35,23 @@ services:
# restart: unless-stopped # restart: unless-stopped
# command: /bin/bash -c "source /opt/ros/foxy/setup.bash && rvis2" # Replace with the actual command to run Gazebo Ignition # command: /bin/bash -c "source /opt/ros/foxy/setup.bash && rvis2" # Replace with the actual command to run Gazebo Ignition
profiles: [ui,] profiles: [ui,]
deploy: # deploy:
resources: # resources:
reservations: # reservations:
devices: # devices:
- driver: cdi # - driver: cdi
device_ids: # device_ids:
- nvidia.com/gpu=all # - nvidia.com/gpu=all
ardupilot: ardupilot:
image: git.spirirobotics.com/spiri/ardupilot:spiri-master image: git.spirirobotics.com/spiri/ardupilot:spiri-master
command: > command:
./Tools/autotest/sim_vehicle.py -v copter --no-rebuild - /bin/bash
--out=udpin:0.0.0.0:5000 - -c
--out=udpin:0.0.0.0:14551 - |
--enable-dds ./Tools/autotest/sim_vehicle.py -v ArduCopter -f gazebo-iris --model=JSON --no-rebuild \
--enable-dds --sim-address=$(python3 -c 'import socket; print(socket.gethostbyname("gz-test"))') --no-mavproxy
stdin_open: true stdin_open: true
tty: true tty: true
@ -58,8 +59,11 @@ services:
image: git.spirirobotics.com/spiri/services-mavproxy:main image: git.spirirobotics.com/spiri/services-mavproxy:main
command: > command: >
mavproxy.py --non-interactive mavproxy.py --non-interactive
--out=tcpin:0.0.0.0:5760 --out tcpin:0.0.0.0:5760
--master=udpout:ardupilot:5000 --master tcp:ardupilot:5760
--out udpin:0.0.0.0:14550
--out udpin:0.0.0.0:14551
--out udpin:0.0.0.0:5000
restart: always restart: always
ports: ports:
- 5760:5760 - 5760:5760
@ -90,7 +94,7 @@ services:
#This service bridges our mavlink-based robot-coprosessor into ROS #This service bridges our mavlink-based robot-coprosessor into ROS
#In this example it connects to a simulated coprocessor. #In this example it connects to a simulated coprocessor.
image: git.spirirobotics.com/spiri/services-ros2-mavros:main image: git.spirirobotics.com/spiri/services-ros2-mavros:main
command: ros2 launch mavros px4.launch fcu_url:="udp://:14555@ardupilot:14551" tgt_system:="1" command: ros2 launch mavros px4.launch fcu_url:="udp://:14555@mavproxy:14551" tgt_system:="1"
#environment: #environment:
# - "ROS_MASTER_URI=http://ros-master:11311" # - "ROS_MASTER_URI=http://ros-master:11311"
depends_on: depends_on:

0
guiTools/Dockerfile Normal file → Executable file
View File

0
guiTools/launcher.py Normal file → Executable file
View File