Raspberry Pi and ROS Robotic Operating System
Raspberry Pi and ROS Robotic Operating System
Table of Contents
Step 5: Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
http://www.instructables.com/id/Raspberry-Pi-and-ROS-Robotic-Operating-System/
Intro: Raspberry Pi and ROS (Robotic Operating System)
In this Tutorial we are going to go over setting up a Raspberry Pi with Linux and ROS. As well as getting familiar with some of the basics by running some simple tutorial
programs from the "ROS WIKI" . If you are unfamiliar with ROS you can check out the WIKI or one of my previous tutorials "Getting Started with ROS" . Just to give you a
Idea of the capabilities of ROS and all the cool things stemming from this Open source project take a look at the video below.
Now just so that you are not confused about the potentials of the Raspberry Pi as a robotic processor/controller, it has great potential for small computation and can run
Linux and all the great features that come along with it. But this is a Arm processor and not a typical PC cpu so it is limited by its architecture and power capabilities.
Some portions of Linux code have not been completely ported to ARM processors so you will be limited at the moment to what programs you can install. But for most of
ROS and the programs I am going to cover in this tutorial, Pi is functional and can be useful depending on the demands of your project. But if you are planning to do any
3d/2d mapping/navigation with a Kinect/laser scanner at the moment I am not sure its possible utilizing just the Raspberry Pi but with time who knows. In the future I will
also include another tutorial that connects the Raspberry Pi to a small robot to act as controller. So lets begin..
Raspberry Pi
http://www.zagrosrobotics.com/shop/item.aspx?itemid=895
HDMI cable
http://www.instructables.com/id/Raspberry-Pi-and-ROS-Robotic-Operating-System/
Step 2: Writing the image to the SD card
Now there are a couple of different ways to get Linux and ROS working on Raspberry PI. One way is to write the Linux image to the SD card then download and install
ROS form within the Raspberry Pi. This can become difficult and time consuming for the beginner, but it is useful when creating a custom ROS installation. These steps
can be found here on the ROS WIKI
Rospberry Pi
However we are going to be using a Linux image that has ROS pre-installed. Thanks to Jeremy Nicola for providing the image in the form of a zip file which can be found
here
Rosberry PI Image
And in order to get our Linux image on to the SD Card we are going to use Image Writer for Windows, which can be downloaded here
https://launchpad.net/win32-image-writer
FOR WINDOWS :
Insert the SD card into your SD card reader, then locate and remember what drive letter the SD card was assigned.
Format the card and make sure there is only one partition (FAT32 is a good choice), otherwise
Win32DiskImager can corrupt your SD card!
Select the drive letter of the SD card in the device box. Make sure you select the correct drive, if you select the wrong drive you can corrupt your data on that assigned
drive.
If all goes well you should have a bootable image on your SD card.
FOR LINUX :
extract Raspbian-ROS-full.img.7z
copy and paste this after replacing the correct paths to your SD card and Raspberry Pi image
example
Wait for the command to return. This may take some time so be patient .If all goes well you should have a bootable image on your SD card.
http://www.instructables.com/id/Raspberry-Pi-and-ROS-Robotic-Operating-System/
Step 3: Starting our Rosberry for the first time
Insert the SD card into the Raspberry Pi's card slot. Connect the Raspberry PI to the HDMI monitor, keyboard, mouse and power supply.And wait for it to boot up. Once
Linux has booted open a terminal screen and enter the following :
roscore
The roscore is now running and we are now ready to start the tutorials.
If you want some background on ROS commands and Syntax look to this Cheat Sheet for help.
or the ROS Start Guide .
With roscore running in one terminal open another terminal and copy and paste
This should output the same data that the first terminal is displaying
Now lets get an idea of what is happening inside the roscore by using rxgraph to display the nodes and messages that are running in our system. Open a new terminal
then copy and paste
rxgraph
Now you should see the running nodes and their respective messages with arrows to point out there output orientation, if you select all topics in the window you can see
all the topics that are published and subscribed within the roscore.
For more ROS tutorials check out the ROS Tutorials page.
http://www.instructables.com/id/Raspberry-Pi-and-ROS-Robotic-Operating-System/
Step 5: Conclusion
Hopefully with this tutorial you were able to install Linux and ROS on your Raspbery PI and get a basic idea of how ROS works. Here is a list of links that might help you
get your robotic project running with ROS and Raspberry PI.
ROS Tutorials
Youtube Tutorials
Rosberry Pi Wiki
Related Instructables
Advertisements
http://www.instructables.com/id/Raspberry-Pi-and-ROS-Robotic-Operating-System/