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

Error when running colcon build -- sensor_msgs/msg/NavSatFix.hpp no such file or directory

asked 2021-10-14 00:24:38 -0600

qwertimer gravatar image

Im new to ros and have been trying to port someones ROS code to ROS2. I have modified much of the main functionality with like for like replacements. However when i run a colcon build i get a no such file or directory. I was told that i need to create the .hpp file from the .msg file that is stored in /opt/ros/foxy/incude/sensor_msgs/msg/NavSatFix.msg. However i have no idea how to generate this. Any help would be appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-13 15:45:54 -0600

bradsteiner gravatar image

Figured out the answer, the include should be #include "sensor_msgs/msg/nav_sat_fix.hpp". I was able to see what the include file options were at /opt/ros/foxy/include/sensor_msgs/msg/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-10-14 00:24:38 -0600

Seen: 1,494 times

Last updated: Oct 14 '21