2023-05-31 14:28:52 -03:00
|
|
|
services:
|
|
|
|
px4:
|
|
|
|
build: Docker_PX4
|
2023-07-04 15:37:54 -03:00
|
|
|
command: bash -c "source /opt/ros/melodic/setup.bash &&
|
|
|
|
source /home/arrow/catkin_ws/devel/setup.bash &&
|
|
|
|
source home/arrow/PX4-Autopilot/Tools/simulation/gazebo-classic/setup_gazebo.bash home/arrow/PX4-Autopilot/ home/arrow/PX4-Autopilot//build/px4_sitl_default &&
|
|
|
|
export ROS_PACKAGE_PATH=/home/arrow/catkin_ws/src/oscillation_ctrl:/opt/ros/melodic/share:/home/arrow/PX4-Autopilot:/home/arrow/PX4-Autopilot/Tools/sitl_gazebo:/home/arrow/PX4-Autopilot:/home/arrow/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic &&
|
|
|
|
|
|
|
|
roslaunch px4 multi_uav_mavros_sitl.launch"
|
2023-05-31 14:28:52 -03:00
|
|
|
tty: true
|
|
|
|
privileged: true
|
2023-06-12 12:25:34 -03:00
|
|
|
volumes:
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- "QT_X11_NO_MITSHM=1"
|
|
|
|
- DISPLAY=$DISPLAY
|
|
|
|
ports:
|
|
|
|
- 14570:14570/udp
|
|
|
|
#deploy:
|
|
|
|
#resources:
|
|
|
|
#reservations:
|
|
|
|
#devices:
|
|
|
|
#- driver: nvidia
|
|
|
|
#
|
|
|
|
# capabilities: [gpu]
|
|
|
|
|
2023-07-04 15:37:54 -03:00
|
|
|
|