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

Cannot build hector_localization

asked 2015-08-11 03:33:56 -0600

psprox96 gravatar image

Hi all!

I'm trying to use pose estimation in the hector_localization package but I encounter problems during catkin_make.

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a configuration file for package geographic_msgs.

  Set geographic_msgs_DIR to the directory containing a CMake configuration
  file for geographic_msgs.  The file will have one of the following names:


Call Stack (most recent call first):
  hector_localization/hector_pose_estimation_core/CMakeLists.txt:7 (find_package)

Anybody got any solutions?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-11 03:40:14 -0600

updated 2015-08-11 04:29:15 -0600

This means the geographic_msgs package is missing from your workspace. The easiest way to install is (assuming you're on indigo):

sudo apt-get install ros-indigo-geographic-msgs

/edit: If you cannot install via package manager, you should try adding the a source version directly to your workspace. There is a "groovy" branch available: . The most simple option is to just copy the package into you workspace, the recommended approach would be using wstool however (see here).

edit flag offensive delete link more


Hi there! I suspected that too. I'm using Groovy, but sudo apt-get install ros-groovy-geographic-msgs cannot be found. Any way else I can do?

psprox96 gravatar image psprox96  ( 2015-08-11 04:10:11 -0600 )edit

Yes, I updated the answer.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2015-08-11 04:29:26 -0600 )edit

Thanks! I got it. I need to create a rosbuild_ws and rosmake geographic_info and afterwards, put the same packages in catkin_ws and catkin_make again. ^^

psprox96 gravatar image psprox96  ( 2015-08-11 11:44:08 -0600 )edit

Thank you ! ... I had the same issue ... I couldn't fix it using geographic-info ... It only worked using the apt command above.

Wafaay gravatar image Wafaay  ( 2017-03-18 12:59:06 -0600 )edit

Question Tools

1 follower


Asked: 2015-08-11 03:33:56 -0600

Seen: 2,650 times

Last updated: Aug 11 '15