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.

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

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