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

Error running catkin_make with tf2_geometry_msgs

asked 2017-07-26 20:40:07 -0500

Ryan_F gravatar image

When running catkin make i get this error

" CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "tf2_geometry_msgs" with any of the following names:

tf2_geometry_msgsConfig.cmake
tf2_geometry_msgs-config.cmake

Add the installation prefix of "tf2_geometry_msgs" to CMAKE_PREFIX_PATH or set "tf2_geometry_msgs_DIR" to a directory containing one of the above files. If "tf2_geometry_msgs" provides a separate development package or SDK, be sure it has been installed."

I downloaded the geometry2 package from github and added it to the CMAKE_PREFIX_PATH but that didn't work, so i grepped the package and nowhere in there do any files contain either of:

tf2_geometry_msgsConfig.cmake

tf2_geometry_msgs-config.cmake

If i can download one of these files and put its path in my CMAKE_PREFIX_PATH i think it should work, but if the geometry2 ros package doesn't contain these files, where can i find them? I really need the package that requires these files so it's crucial that i find a way to build the workspace.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-07-27 18:05:44 -0500

tfoote gravatar image

The Cmake config files are generated when you compile tf2_geometry_msgs. You either need it in your workspace or have it built and installed into an underlying workspace. Or you need to be building on top of the binary installed versions.

Please see the ROS tutorials for setting up your ROS environment: http://wiki.ros.org/ROS/Tutorials

edit flag offensive delete link more

Comments

Thanks! This works

Ryan_F gravatar image Ryan_F  ( 2017-07-27 18:09:36 -0500 )edit

Is there any chance you could provide more information?

TheMilkman gravatar image TheMilkman  ( 2018-04-08 23:52:21 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-26 20:40:07 -0500

Seen: 2,864 times

Last updated: Jul 27 '17