gokulp01 / ros2-ublox-zedf9p

ROS2 drivers for U-blox ZED F9P
32 stars 15 forks source link

Can not build the ublox_gps package #3

Closed ZainCDEI closed 9 months ago

ZainCDEI commented 9 months ago

I have successfully built the other packages: ublox_serialization and ublox_msgs and also confirmed that the header files are present in the install folder. Howver, when it comes to the ublox_gps package the build fails with the following error:

fatal error: ublox_msgs/ublox_serialization.hpp: No such file or directory 43 | #include<ublox_msgs/ublox_serialization.hpp>

Using ROS humble on Ubuntu 22.04

Has anyone been able to successfully build all the packages given in this repo?

gokulp01 commented 9 months ago

Hi, sorry for the delay in my response.

Can you try building just the ublox_msgs using: colcon build --packages-select ublox_msgs and let me know if it is working fine? This package has not been tested with ROS2 Humble, that could be one reason for the error.

ZainCDEI commented 9 months ago

I am not sure if this is the correct approach to modify a cmakelists.txt file but I added the following line to the CMakelists.txt file, above this line and was able to build the package successfully:

include_directories(${ublox_msgs_INCLUDE_DIRS})

gokulp01 commented 9 months ago

Thank you! I have committed the changes! Now it should work well