ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is ROS compatible with Python and can it run on a Raspberry Pi

asked 2015-06-17 06:09:26 -0500

Euan gravatar image

Looking to add sensors to a robot using Raspberry Pi and the programming language Python. I was wondering if ROS would be a suitable operating system.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2015-06-17 06:34:19 -0500

Mehdi. gravatar image

ROS despite its name is not really an operating system, it is more like a middle-ware that facilitates controlling your robot and it works on top of Ubuntu or any other Linux distribution. I believe there is already builds of ROS that you can install directly on your Raspberry Pi, as if you were to install any other software on your board, you can find a tutorial here. And ROS is implemented in Python as well, if you do the ROS tutorials you will see that the rospy library offers access to all ROS functionalities from Python.

edit flag offensive delete link more

answered 2015-06-17 13:59:49 -0500

jbrown gravatar image

If you use a raspberry pi 2, you can use Ubuntu Snappy, which is a version of Ubuntu for Arm architecture. You can get it here:

Make sure you do the partitioning under the usage section, as it will give you a full sized SD card. To install ROS, I followed the instructions here, and it worked out well:

This worked just fine for me, I was able to use ROS without a problem, I even compiled OpenCV in about 2 or so hours!

edit flag offensive delete link more

answered 2015-06-17 06:35:59 -0500

Cesare gravatar image

ROS is a so called meta-operating system, this means that it's not an OS itself, it need an OS like Ubuntu to run. Beside that, the two main languages supported by ROS are C++ and python.

edit flag offensive delete link more

answered 2015-06-17 13:00:07 -0500

corb gravatar image

updated 2015-06-17 13:00:26 -0500

ROS has a nice Python interface (rospy). You can use ROS on Raspberry Pi / Rasbian. I'd recommend the RPI-2 - the RPI-1 will be very limited due to memory and low CPU power (you might want to consider the ODROID-C1 RPI clone as well since it is same price and faster). Not all ROS packages are available for the ARM processors. For more info, see here:

ros wiki Raspberry PI


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-06-17 06:09:26 -0500

Seen: 1,190 times

Last updated: Jun 17 '15