Hi @chrisknightley ,
Some how after checking and changing them to Arduino.h in the include, the WProgram.h error has gone thanks,
but when I tried to upload the sketch again to the Mega, I got a different error this time as below,
exit status 1
inmoov_msgs/MotorCommand.h: No such file or directory
I checked the inmoov_ros directory in the gihub link I provided above...., I see a folder inmoov_msgs there, it exists......so Im lost...please let me know what I have done wrong here or missing?