Build Error: Issue with "diagnostic_updater"

asked 2022-02-26 23:17:58 -0500

Ben Brian gravatar image

I get the following errors when I build on Linux (Ubuntu 20.04) with ROS2 (Foxy Fitzroy). Would you please help me with that? Thanks!

[ 76%] Building CXX object CMakeFiles/sick_scan_shared_lib.dir/roswrap/src/launchparser/launchparser.cpp.o
In file included from /root/dev_ws/src/sick_scan_xd/roswrap/src/launchparser/launchparser.cpp:7:
/root/dev_ws/src/sick_scan_xd/include/sick_scan/sick_ros_wrapper.h:357:10: fatal error: diagnostic_updater/diagnostic_updater.hpp: No such file or directory
357 | #include <diagnostic_updater/diagnostic_updater.hpp> // part of diagnostic_msgs of ROS2, not available on ROS2-Windows until foxy patch 4
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sick_scan_lib.dir/build.make:89: CMakeFiles/sick_scan_lib.dir/roswrap/src/launchparser/launchparser.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
edit retag flag offensive close merge delete