Skip to content

Custom Ardupilot Dockerfile & a helper script for running Ardupilot SITL in a docker container, with GUI support and simplified config

Notifications You must be signed in to change notification settings

Akademicki-Klub-Lotniczy/ardupilot-sitl-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

Ardupilot - open-source autopilot for unmanned vehicles (drones, planes, boats, you tell me)

SITL - software in the loop - a simulator for ardupilot

SITL was a PITA to work with, when you have 0 experience with ardupilot, so I've made a docker image and a python helper script to make the whole procedure a bit easier for newcomers.

Usage

sitl.py script

The script is documented, so I'll just post the output of ./sitl.py --help here:

usage: sitl.py [-h] [-m] [-c] -v VEHICLE [-l LOCATION]

SITL Runner

optional arguments:
  -h, --help            show this help message and exit
  -m, --map             Show the map window
  -c, --console         Show the console window
  -v VEHICLE, --vehicle VEHICLE
                        Choose vehicle (ArduPlane or ArduCopter)
  -l LOCATION, --location LOCATION
                        Select location (Legnica by default)

Manually, through docker

Just use docker-compose from here

Or if you HAVE to use just docker, here's your long boi:

docker run -it --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/home/akl/.Xauthority:rw" wnt3rmute/ardupilot-sitl ./sim_vehicle.py -L Ballarat --console --map -v ArduCopter -N

How this works

GUI works through sharing the .Xauthority file (see tutorials on how to use host's X from inside Docker. Wayland works through XWayland (last time that I checked).

About

Custom Ardupilot Dockerfile & a helper script for running Ardupilot SITL in a docker container, with GUI support and simplified config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published