This repository contains all the necessary parts to build and run a docker image with SITL simulation on ROS2 leveraging XRCE to communicate with PX4.
This repository contains the 3 main components of the simulation:
- PX4 Firmware (with Gazebo SITL)
- XRCE-DDS-Agent to communicate with the simulated PX4
- BRIDGE to communicate the Gazebo simulation topics to ROS2 topics
Build the tree docker images with:
make build
Run the full simulation with:
docker compose up
make build: Build all the docker imagesmake build-sitl: Build the PX4 SITL docker imagemake build-xrce: Build the XRCE-DDS-Agent docker imagemake build-bridge: Build the ROS2 bridge docker image
make run-sitl: Run only the PX4 SITL docker containermake run-xrce: Run only the XRCE-DDS-Agent docker containermake run-bridge: Run only the ROS2 bridge docker containermake run-dev-sitl: Run only the PX4 SITL docker container in dev (interactive bash) modemake run-dev-xrce: Run only the XRCE-DDS-Agent docker container in dev (interactive bash) modemake run-dev-bridge: Run only the ROS2 bridge docker container in dev (interactive bash) mode
make stop: Stop all running containersmake stop-sitl: Stop only the PX4 SITL docker containermake stop-xrce: Stop only the XRCE-DDS-Agent docker containermake stop-bridge: Stop only the ROS2 bridge docker container
make help: Show the help message with all the available commands
TO BE UPDATED
TO BE UPDATED
Remember to update the makefile help section when adding new commands and keep the readme consistent !!!