Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while build in Jazzy #16

Open
Rahul-Tom opened this issue Oct 22, 2024 · 1 comment
Open

Getting error while build in Jazzy #16

Rahul-Tom opened this issue Oct 22, 2024 · 1 comment

Comments

@Rahul-Tom
Copy link

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 2

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

@Rahul-Tom
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant