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

Error with catkin_make after installing hector_navigation

asked 2018-07-17 16:30:50 -0500

hamzh.albar@gmail.com gravatar image

Hello everyone

I'm trying to use hector_exploration_node from the hector_navigation package from github

After downloading it using git clone to my ws/src

I got an error after trying to compile using catkin_make

Could not find a package configuration file provided by "costmap2d" with any

So I did sudo aot-get install ros-kinetic-navigation and the error above disappared since costmap2d was on the package

not I get a new error when trying to compile which is :

Could not find a package configuration file provided by "geodesy" with any

of the following names:

geodesyConfig.cmake
geodesy-config.cmake
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-07-18 00:54:31 -0500

mgruhler gravatar image

updated 2018-07-18 01:05:56 -0500

You are obviously missing dependencies. Either install them manually one by one (i.e. sudo apt install ros-kinetic-<MISSING_PACKAGE> for ROS packages, so geodesy is missing right now), or, better, use rosdep to automatically install them.

See the wiki page on how to use it.


Edit

To quote now the link above...

Using rosdep

Install dependency of a particular package

You can use rosdep and catkin to build any package in the ROS repository. Say that you want to build a package called AMAZING_PACKAGE, that you hadn't built on your machine before.

rosdep install AMAZING_PACKAGE

Install dependency of all packages in the workspace

This usecase shows even more powerful feature of rosdep.

Go to the top directory of your catkin workspace where the source code of the ROS packages you'd like to use are. Then run:

rosdep install --from-paths src --ignore-src -r -y

This command magically installs all the packages that the packages in your catkin workspace depend upon but are missing on your computer.

edit flag offensive delete link more

Comments

Thank you , but which package should I install to get geodesy ???

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-18 00:55:25 -0500 )edit

ros-kinetic-geodesy? Check the status page which packages are released.

I'd highly recommend you use the rosdep approach though. See edit above.

mgruhler gravatar image mgruhler  ( 2018-07-18 01:05:05 -0500 )edit

@mgruhler I just used what you said

    ~/catkin_ws$ rosdep install hector_navigation

and I get an error ERROR: Rosdep cannot find all required resources to answer your query Missing resource hector_navigation ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/opt/ros/kinetic/share

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-18 23:18:37 -0500 )edit

This only works if rosdep can find the respective package. You haven't sourced the devel/setup.bash...

mgruhler gravatar image mgruhler  ( 2018-07-19 01:26:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-17 16:30:50 -0500

Seen: 1,403 times

Last updated: Jul 18 '18