# Install ROS (Robot operating system)

**URL:** <https://forums.balena.io/t/install-ros-robot-operating-system/1526>\
**Category:** Product support\
**Created:** [July 27, 2017, 8:39am UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526 "2017-07-27T08:39:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![spmaniato](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/spmaniato/32/204_2.png) [@spmaniato](https://forums.balena.io/u/spmaniato)\
**Post date:** [July 28, 2017, 5:19am UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/7 "2017-07-28T05:19:53Z")

</div>

@hecontreraso If you end up building from source, also take a look at this more recent project of mine:

> **[spmaniato/resin-bbb-ros-sweep](https://github.com/spmaniato/resin-bbb-ros-sweep)**
>
> :satellite: Sweep 360-degree LiDAR on a BeagleBone Black using ROS and resin.io - spmaniato/resin-bbb-ros-sweep

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](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.

---

_[View the full topic](https://forums.balena.io/t/install-ros-robot-operating-system/1526)._
