Running ROS on Raspberry Pi and Odroid boards

As we discussed earlier, Raspberry Pi and Odroid boards work like a PC. We can install customized Linux on each board and install ROS on it. There are two methods to run ROS on these boards. We can either install a fresh version of a Linux OS on it and install ROS from scratch or download a prebuilt image of the OS with ROS. The first option is a long procedure, and it will take a while to build ROS on Linux. You can follow the procedure at https://goo.gl/LvW2ZN to install ROS from scratch. In this section, we are dealing with ROS installation from a prebuilt binary.

Here is the link to download Raspberry Pi 2 images with ROS preinstalled:

http://www.mauriliodicicco.com/raspberry-pi2-ros-images/

Also, you can download Odroid-ROS images from the following links:

http://forum.odroid.com/viewtopic.php?f=112&t=11994

You can burn the OS to an SD card using the following tools:

On Windows, you can use Win32DiskImager, which can be downloaded from the following link:

https://sourceforge.net/projects/win32diskimager/

For Odroid, we need a customized version of Win32DiskImager, and it can be downloaded from the following link:

http://dn.odroid.com/DiskImager_ODROID/Win32DiskImager-odroid-v1.3.zip

This is what Win32DiskImage looks like in Odroid:

Figure 18: Win32DiskImager for Odroid

In Linux, you can use a tool called dd (Disk Dump); the following command helps you install OS images to an SD card:

    $ sudo apt-get install pv

The pv tool can help you monitor the progress of this operation:

    $ dd bs=4M if=image_name.img | pv | sudo dd of=/dev/mmcblk0

Here, image_name.img is the OS image name, and /dev/mmcblk0 is the SD card reader device.

Boot the board from the SD card and check whether the board is booting properly. If it is, we can communicate with the board using Wi-Fi or wired LAN with the PC.

Now let's look at the methods to connect a single board computer to your PC.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.77.195