We are trying to load in a custom message type in the Arduino IDE. We've been trying to upload it in the /Arduino/libraries folder, and it looks like it's at the right place. We can find the .h file in /Arduino/libraries/ros_lib/<<package_name>>/<<header_file>>. We restarted the IDE a few times to try to get it working but without results. When we try to verify our code it shows the error message:
readEncodersHardware:5:10: fatal error: archer_pkg/Encoderdata.h: No such file or directory #include <archer_pkg/Encoderdata.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
archer_pkg/Encoderdata.h: No such file or directory
Does anyone know if we missed something?
Thanks in advance!
You need to add an #include directive for a file under /Arduino/libraries/ros_lib first in order to add that library to the include search path.
I'm making some assumptions when providing this advice. If it doesn't help you, please post a link to where you downloaded the ros_lib library from, or if you installed it via Arduino's Library Manager, say so.
jorenfrans:
I installed it via Arduino's Library Manager.
That's odd, because there is no library named "ros_lib" or "ros lib" in the Arduino Library Manager. Please provide a detailed description of the steps I would need to follow to install this library on my computer.
jorenfrans:
When I try Sketch > Include library, I can see the "Arduino libraries", but it's disabled.
That's normal and expected. The Sketch > Include library menu is split into multiple sections. Each section starts with a section heading, which is not intended to be selectable, and thus is grey.