I did some research on this forum based on the error in the subject and found that WProgram.h is old and needs to be replaced with Arduino.h which I did.
The version of Arduino I'm using is 1.8.9 in windows 10.
Arduino.h was originally WProgram.h and I changed that as above but when I try to upload the sketch, I still get the "WProgram.h: No such file or directory" error,
I'm not sure if I have modified this in the right place..., can you please let me know what I done incorrectly or missing?
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?
Well... Perhaps it seems that need to understand and modify the entire project rather than making such simple changes.
Maybe you probably also need knowledge of languages other than Arduino (C++). (Perhaps python?)
I'm really sorry, I can't help you any further because It seems beyond the scope of the effort I can put into one topic.
I'm going to ask you to post some additional information that might help us to identify the problem.
Please do this:
When you encounter an error, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V. This will paste the compilation output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.