Skip to content

Docker Image for starting a Swarm of ArduPilot Simulators

Notifications You must be signed in to change notification settings

NishaAkole/sitl-swarm_img

 
 

Repository files navigation

Multi-Agent ArduPilot Software-in-the-Loop Simulator Docker Container

sitl-swarm-logo

The purpose of this is to run /many/ ArduPilot SITL from within Docker.

DockerHub

A pre-built Docker image is available on DockerHub at:

https://hub.docker.com/r/radarku/sitl-swarm

To download it, simply:

docker pull radarku/sitl-swarm

and to run it:

docker run --rm -p 5760-5810:5760-5810 --env NUMCOPTERS=3 --env NUMROVERS=3 radarku/sitl-swarm

Quick Start

If you'd rather build the docker image yourself:

docker build --tag sitl-swarm .

To run the image:

docker run --rm -p 5760-5810:5760-5810 --env NUMCOPTERS=3 --env NUMROVERS=3 sitl-swarm

This will start 3 ArduCopter and 3 ArduRover SITL on host TCP ports 5760, 5770, 5780, 5790, 5800, and 5810 so to connect to it from the host, you could:

mavproxy.py --master=tcp:localhost:5760
mavproxy.py --master=tcp:localhost:5770
mavproxy.py --master=tcp:localhost:5780
mavproxy.py --master=tcp:localhost:5790
mavproxy.py --master=tcp:localhost:5800
mavproxy.py --master=tcp:localhost:5810

Options

The full list of options and their default values is:

INSTANCE          0
LAT               42.3898
LON               -71.1476
ALT               14
DIR               270
COPTERMODEL       +
ROVERMODEL        +
SUBMODEL          +
PLANEMODEL        +
SPEEDUP           1
NUMCOPTERS        0
NUMROVERS         0
NUMSUBS           0
NUMPLANES         0
INCREMENTSTEPLAT  0.01
INCREMENTSTEPLON  0.01

Vehicles and their corresponding models are listed below:

ArduCopter: octa-quad|tri|singlecopter|firefly|gazebo-
    iris|calibration|hexa|heli|+|heli-compound|dodeca-
    hexa|heli-dual|coaxcopter|X|quad|y6|IrisRos|octa
APMrover2: rover|gazebo-rover|rover-skid|calibration
ArduSub: vectored
ArduPlane: gazebo-zephyr|CRRCSim|last_letter|plane-
    vtail|plane|quadplane-tilttri|quadplane|quadplane-
    tilttrivec|calibration|plane-elevon|plane-
    tailsitter|plane-dspoilers|quadplane-tri
    |quadplane-cl84|jsbsim

About

Docker Image for starting a Swarm of ArduPilot Simulators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 52.9%
  • Dockerfile 47.1%