Set Up Docker File for SITL Simulation
This guide will walk you through how to set up your docker file to execute Software-in-the-Loop simulation tests. At the end of the page, you'll find an example docker file for the px4-gazebo.
Basic Mountpoints
/opt/chassy/src
/opt/chassy/simulate
/opt/chassy/reports
JUnit Reports
/opt/chassy/reports/
├── junit_setup_validation.xml
├── test-results-minimal.xml
├── test-results-gazebo.xml
├── test-results-flight.xml
└── test-results-integration.xml # Combined test resultsScreenshots and GIFs
Universal Scene Description (USD) Files
MCAP
/opt/chassy/logs
ROS and ROS2: Rosconsole / rosout / rcllogging
Google Logs
C++ spd logs
Python Logs
/opt/chassy/artifacts (Under Development)
Example Dockerfile
Base Image
Environment Setup
Install Dependencies
Gazebo Installation
Simulation Environment Variables
PX4 Workspace
Python Dependencies for Testing & Simulation
PX4 Build
Set PX4 Environment Variables
Simulation Entrypoint Setup
Full example
Last updated

