@hecontreraso If you end up building from source, also take a look at this more recent project of mine:
In addition, you can probably work around the fact that there are no mavros
binaries for Raspbian by following the hack I’ve used here:
https://github.com/Maidbot/resin-raspberrypi3-ros
You can ignore the QEMU (cross-build) stuff. The key points of this workaround are (i) using the resin/raspberrypi3-buildpack-deps:jessie
base Docker image and (ii) “pretending to be Ubuntu Trusty”:
RUN echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list \
&& apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116
With these in place, you should be able to install ROS (and mavros
) from Debian packages, i.e., using apt-get
(see the rest of my Dockerfile
in the second project I’ve linked above). Keep in mind that I haven’t tested this workaround recently and that even back then I only tested with Jessie + ROS Indigo. With more recent OS and ROS distros there’s also a higher chance of ABI incompatibility between the actual OS binaries and the Debian packages.