I'm a newbie to ROS, rosserial and Arduino. Nonetheless, I'm trying my hand at doing some development. When I tried to compile the rosserial_arduino example for HelloWorld using the Arduino IDE (1.0 rc2), it wouldn't compile as a result of the renaming of "Wprogram.h" to "Arduino.h". I solved the problem by editing ArduinoHardware.h to replace:
#include <Wprogram.h>
with:
#if ARDUINO>=100
#include <Arduino.h> // Arduino 1.0
#else
#include <Wprogram.h> // Arduino 0022
#endif
Hopefully (1) this is the preferred solution and (2) it gets propagated into the rosserial package.
Originally posted by mcsmith on ROS Answers with karma: 66 on 2011-11-03
Post score: 3
Original comments
Comment by AzureViolin on 2012-03-20:
This is cool, man. Thanks a lot!