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:
gui-tools:
# runtime: nvidia
runtime: nvidia
build:
context: ./guiTools/
@ -22,7 +22,7 @@ services:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${XAUTHORITY:-~/.Xauthority}:/root/.Xauthority
# 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
- /dev/dri:/dev/dri
devices:
@ -35,22 +35,23 @@ services:
# restart: unless-stopped
# command: /bin/bash -c "source /opt/ros/foxy/setup.bash && rvis2" # Replace with the actual command to run Gazebo Ignition
profiles: [ui,]
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=all
# deploy:
# resources:
# reservations:
# devices:
# - driver: cdi
# device_ids:
# - nvidia.com/gpu=all
ardupilot:
image: git.spirirobotics.com/spiri/ardupilot:spiri-master
command: >
./Tools/autotest/sim_vehicle.py -v copter --no-rebuild
--out=udpin:0.0.0.0:5000
--out=udpin:0.0.0.0:14551
--enable-dds
command:
- /bin/bash
- -c
- |
./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
tty: true
@ -58,8 +59,11 @@ services:
image: git.spirirobotics.com/spiri/services-mavproxy:main
command: >
mavproxy.py --non-interactive
--out=tcpin:0.0.0.0:5760
--master=udpout:ardupilot:5000
--out tcpin:0.0.0.0:5760
--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
ports:
- 5760:5760
@ -90,7 +94,7 @@ services:
#This service bridges our mavlink-based robot-coprosessor into ROS
#In this example it connects to a simulated coprocessor.
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:
# - "ROS_MASTER_URI=http://ros-master:11311"
depends_on:

0
guiTools/Dockerfile Normal file → Executable file
View File

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