February 2018
Beginner
580 pages
13h 20m
English
Now that we have built the project, before running the examples, we should do the following setup in Raspberry Pi. You can do this setup by logging in 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
We can now log in with a different Terminal in our Raspberry Pi 2, and run the following commands to execute the blink_demo program:
Start roscore in one Terminal:
$ roscore
Run the executable as the root in another Terminal: ...
Read now
Unlock full access