rosserial library (SOLVED)

Hi!

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...

i wish you can help me with this problem....

Looks like you have an old version that is pre-Arduino-1.0

hi, i'm using the arduino IDE 1.0.1 on my ubuntu 12.04

hi, i'm using the arduino IDE 1.0.1

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.

if I had not sought would not be publishing this post, thank you!!

What, exactly, did you search, then?

Google, with the phrase "WProgram.h Arduino" lists a bunch of results. Look at the second one:

Right there, it gives you explicit instructions.

Of course, when you downloaded the software, you should have read:

which also explains what you need to do.

Thank you PaulS, what i did:

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:

#include "Arduino.h"
//#include "WProgram.h"

and later, it works....

Problem solved..

Thank you for your help!!