In order to set up Arduino IDE in ROS fuerte [1-4], you are going to open a new terminal, so as to type the following commands
sudo apt-get install ros-fuerte-rosserial
roscd rosserial_arduino/libraries
sudo cp -r ros_lib /usr/share/arduino/libraries/
Update: For new arduino version > 1.0 ,we must edit ArduinoHardware.h at line 38
/usr/share/arduino/libraries/ros_lib directory. Replace Wprogram.h toArduino.h [5].
Then, Open the arduino IDE in order to load the Odom.ino script at examples>ros_lib.
If four new terminals type the following commands [7]
roscore
rosrun rosserial_python serial_node.py /dev/ttyACM0
rosrun rviz rviz
rxgraph
At RVIZ window you are going to chosethe following parameters:
Fixed Frame: /odom
Add: Rviz Grid
Add: Rviz TF
[1] http://www.ros.org/wiki/rosserial_arduino/Tutorials
[2] http://www.ros.org/wiki/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
[3] http://dougsbots.blogspot.mx/2012/06/custom-ros-messages-with.html
[4] http://ros-robot.blogspot.mx/2012/11/rosserialarduinoros.html
[5] http://www.technolabsz.com/2011/09/arduino-and-ros.html
[6] http://swarmlab.unimaas.nl/autonomous-systems/installation/