ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Arduino doesn't load in header file

asked 2020-07-06 09:39:50 -0600

JorenFrans3046 gravatar image

updated 2020-07-07 07:08:40 -0600

gvdhoorn gravatar image

Hi everyone!

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-06 11:19:08 -0600

Hello. I think you should enter a full path to your header (#include "ros_lib/archer_pkg/Encoderdata.h")

edit flag offensive delete link more

Comments

Didn't work, but thanks for the response!

JorenFrans3046 gravatar image JorenFrans3046  ( 2020-07-07 06:51:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-06 09:39:50 -0600

Seen: 180 times

Last updated: Jul 07 '20