added ros2-mavros service
This commit is contained in:
parent
8346fb42b5
commit
73849a366b
|
@ -3,6 +3,7 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
gui-tools:
|
gui-tools:
|
||||||
|
# runtime: nvidia
|
||||||
build:
|
build:
|
||||||
context: ./guiTools/
|
context: ./guiTools/
|
||||||
|
|
||||||
|
@ -14,6 +15,8 @@ services:
|
||||||
# If running with Wayland
|
# If running with Wayland
|
||||||
- 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
|
||||||
|
@ -46,6 +49,7 @@ services:
|
||||||
command: >
|
command: >
|
||||||
./Tools/autotest/sim_vehicle.py -v copter --no-rebuild
|
./Tools/autotest/sim_vehicle.py -v copter --no-rebuild
|
||||||
--out=udpin:0.0.0.0:5000
|
--out=udpin:0.0.0.0:5000
|
||||||
|
--out=udpin:0.0.0.0:14551
|
||||||
--enable-dds
|
--enable-dds
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
|
@ -82,6 +86,26 @@ services:
|
||||||
nofile:
|
nofile:
|
||||||
soft: 1024
|
soft: 1024
|
||||||
hard: 524288
|
hard: 524288
|
||||||
|
mavros2:
|
||||||
|
#This service bridges our mavlink-based robot-coprosessor into ROS
|
||||||
|
#In this example it connects to a simulated coprocessor.
|
||||||
|
image: services-ros2-mavros
|
||||||
|
command: ros2 launch mavros px4.launch fcu_url:="udp://:14555@ardupilot:14551" tgt_system:="1"
|
||||||
|
#environment:
|
||||||
|
# - "ROS_MASTER_URI=http://ros-master:11311"
|
||||||
|
depends_on:
|
||||||
|
ardupilot:
|
||||||
|
condition: service_started
|
||||||
|
restart: always
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
# cpus: '0.01'
|
||||||
|
memory: 200M
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 1024
|
||||||
|
hard: 524288
|
||||||
|
|
||||||
ros-master:
|
ros-master:
|
||||||
image: git.spirirobotics.com/spiri/services-ros1-core:main
|
image: git.spirirobotics.com/spiri/services-ros1-core:main
|
||||||
|
|
Loading…
Reference in New Issue