Open Rahul-Tom opened 1 month ago
I am getting error which says colcon build. It says it can't find tf2_geometry_msgs/tf2_geometry_msgs.h. But it does exist in my system. The output is
Failed <<< ros2_laser_scan_matcher [3.26s, exited with code 2]
Summary: 1 package finished [4.00s] 1 package failed: ros2_laser_scan_matcher 1 package had stderr output: ros2_laser_scan_matcher
I solved the issue by replacing #include <tf2_geometry_msgs/tf2_geometry_msgs.h> with #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp> (line 47 in header file)
I am getting error which says colcon build. It says it can't find tf2_geometry_msgs/tf2_geometry_msgs.h. But it does exist in my system. The output is
Starting >>> csm
Finished <<< csm [0.51s]
Starting >>> ros2_laser_scan_matcher --- stderr: ros2_laser_scan_matcher
In file included from /home/p3dx/Project/new_ws/src/ros2_laser_scan_matcher/src/laser_scan_matcher.cpp:38: /home/p3dx/Project/new_ws/src/ros2_laser_scan_matcher/include/ros2_laser_scan_matcher/laser_scan_matcher.h:47:10: fatal error: tf2_geometry_msgs/tf2_geometry_msgs.h: No such file or directory 47 | #include <tf2_geometry_msgs/tf2_geometry_msgs.h> | ^
~~~~~~~~~~ compilation terminated. gmake[2]: [CMakeFiles/laser_scan_matcher.dir/build.make:76: CMakeFiles/laser_scan_matcher.dir/src/laser_scan_matcher.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:137: CMakeFiles/laser_scan_matcher.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2Failed <<< ros2_laser_scan_matcher [3.26s, exited with code 2]
Summary: 1 package finished [4.00s] 1 package failed: ros2_laser_scan_matcher 1 package had stderr output: ros2_laser_scan_matcher