Runs MAVROS + ROS core to connect to a MAVLink stream
1.0K

The purpose of this is to run MAVROS from within Docker
A pre-built Docker image is available on DockerHub at:
https://hub.docker.com/r/radarku/mavros
To download it, simply:
docker pull radarku/mavros
and to run it:
docker run -it --rm --env FCUURL="tcp://192.168.1.113:5760" radarku/mavros
...where the MAVLink stream is at the FCUURL (see Options section below).
If you'd rather build the docker image yourself, checkout the source:
git clone https://github.com/radarku/docker-mavros.git
then go into the directory
cd docker-mavros
and build the docker image
docker build --rm --tag mavros .
Start a SITL using:
docker run -it --rm -p 5760:5760 radarku/ardupilot-sitl
Find the IP address of the machine, then run the MAVROS container:
docker run -it --rm --env FCUURL="tcp://192.168.1.113:5760" mavros
where 192.168.1.113 is the IP of the machine running the ardupilot SITL
The MAVROS page specifies the various forms for the FCUURL as:
/path/to/serial/device[:baudrate]serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]tcp://[server_host][:port][/?ids=sysid,compid]tcp-l://[bind_host][:port][/?ids=sysid,compid]Content type
Image
Digest
Size
434.2 MB
Last updated
about 7 years ago
docker pull radarku/mavros