Error with catkin_make after installing hector_navigation
Hello everyone
I'm trying to use hectorexplorationnode 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
Asked by hamzh.albar@gmail.com on 2018-07-17 16:30:50 UTC
Answers
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.
Asked by mgruhler on 2018-07-18 00:54:31 UTC
Comments
Thank you , but which package should I install to get geodesy ???
Asked by hamzh.albar@gmail.com on 2018-07-18 00:55:25 UTC
ros-kinetic-geodesy
? Check the status page which packages are released.
I'd highly recommend you use the rosdep
approach though. See edit above.
Asked by mgruhler on 2018-07-18 01:05:05 UTC
@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
Asked by hamzh.albar@gmail.com on 2018-07-18 23:18:37 UTC
This only works if rosdep can find the respective package. You haven't sourced the devel/setup.bash
...
Asked by mgruhler on 2018-07-19 01:26:56 UTC
Comments