Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Running LED blink in Raspberry Pi 2

The examples which work on Odroid-C1 will work on Raspberry Pi-2 too. Before running the examples, first we should do the following setup in Raspberry Pi. You can do this setup by login to Raspberry Pi through SSH.

We need to add the following lines to the .bashrc file of the root user. Take the .bashrc file of the root user:

    $ sudo -i
    $ nano .bashrc  

Add the following lines to the end of this file:

source /opt/ros/indigo/setup.sh 
source /home/pi/catkin_ws/devel/setup.bash 
export ROS_MASTER_URI=http://localhost:11311 

After adding these lines, we can follow the same command we did in Odroid. Note that the user name is pi, not odroid.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content