# 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:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hecontreraso](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hecontreraso](https://forums.balena.io/u/hecontreraso)\
**Post date:** [July 27, 2017, 8:39am UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/1 "2017-07-27T08:39:37Z")

</div>

Hello guys,  
Have someone here been able to install and run ROS?  
I followed [these instructions](http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi) but is getting very difficult. The main problem is that I can’t install mavros.

Is resin OS based in raspbian? I read in some forums that ROS only works in ubuntu mate (An ubuntu version for raspberry pi). But I still don’t lose hope

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![telphan](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@telphan](https://forums.balena.io/u/telphan)\
**Post date:** [July 27, 2017, 8:48am UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/2 "2017-07-27T08:48:38Z")

</div>

I am not aware of any internal efforts to work with ROS, but in my opinion it should work with resin. Could you paste the errors you are getting with mavros?

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [July 27, 2017, 11:09am UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/3 "2017-07-27T11:09:00Z")

</div>

Hey @hecontreraso, resinOS is the underlying system, it is not based on Raspbian, but it should not matter, the application is running in a Docker container, and thus can be any other system (maybe [a bit more info in the docs](https://docs.resin.io/understanding/understanding-devices/2.0.0/#resinos-components), hope it helps a bit)

There’s this other project that was working on getting ROS running on [resin.io](http://resin.io) devices, you can check out what the status is (it’s a community project by @spmaniato, it seems)

> **[spmaniato/resin-ros](https://github.com/spmaniato/resin-ros)**
>
> :whale: Source installation of the Robot Operating System on top of a Resin template - spmaniato/resin-ros

Let us know how your projects goes!

---

<div class="post-metadata">

**Author:** ![hecontreraso](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hecontreraso](https://forums.balena.io/u/hecontreraso)\
**Post date:** [July 27, 2017, 6:15pm UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/4 "2017-07-27T18:15:46Z")

</div>

The problem is that I can’t install a ROS library named mavros. Seems like it is not available for debian jessie:

[http://answers.ros.org/question/260317/ros-kinetic-mavros-installation-on-rpi-3/](http://answers.ros.org/question/260317/ros-kinetic-mavros-installation-on-rpi-3/)

Fortunately, I wrote to ROS people, and they suggested to build mavros from sources, So I’m going to try

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [July 27, 2017, 7:54pm UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/5 "2017-07-27T19:54:30Z")

</div>

@hecontreraso do you know what distro it is available for? It might be as simple as switching to [arm32v7/ubuntu](https://hub.docker.com/r/arm32v7/ubuntu/) .

---

<div class="post-metadata">

**Author:** ![hecontreraso](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hecontreraso](https://forums.balena.io/u/hecontreraso)\
**Post date:** [July 27, 2017, 8:43pm UTC](https://forums.balena.io/t/install-ros-robot-operating-system/1526/6 "2017-07-27T20:43:35Z")

</div>

@shaunmulligan  
It is available for Ubuntu armhf. So I guess that in a Raspberry Pi, the first line of my Dockerfile should be like this, right?

FROM arm32v7/ubuntu

🙂

---

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