I'm using arduino with ROS, but i have a problem, when i going to verify a sketch from de library example it gives me a error, it's the next message:
En el fichero incluído de /home/jose/sketchbook/libraries/ros_lib/ros.h:39,
de HelloWorld.cpp:6:
/home/jose/sketchbook/libraries/ros_lib/ArduinoHardware.h:38:22: error: WProgram.h: No existe el archivo o el directorio
In file included from /home/jose/sketchbook/libraries/ros_lib/ros.h:39,
from HelloWorld.cpp:6:
/home/jose/sketchbook/libraries/ros_lib/ArduinoHardware.h: In member function ‘long unsigned int ArduinoHardware::time()’:
/home/jose/sketchbook/libraries/ros_lib/ArduinoHardware.h:73: error: ‘millis’ was not declared in this scope
i'm working with a arduino mega 2560 on ubuntu 12.04...
And the library isn't. This "problem", and the solution, has been documented so many times, we're getting tired of telling people how to fix. It's your turn to use the search capability.
The library folder "ros_lib" i copied into "user/sketchbook/libraries/", later, i open the file "ArduinoHardware.h" included in the "ros_lib" folder and a changed the following lines: