ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The way your package was set up is likely incorrect for use with a catkin workspace. Try the following:
test_nav
is a package, not a metapackage, configure CMakeLists.txt and package.xml (see details)launch/
inside test_nav
and move the launch files there (just to keep your package tidy)The first two steps are to ensure the problem is not with your workspace. The third step is to ensure your package is catkin-compliant.
In the worst case scenario, move the test_nav
folder out of your catkin workspace, then create a new package with the same name in your workspace with catkin_create_pkg
, configure the CMakeLists.txt and package.xml files, copy the header/source/launch files to their corresponding folders and try to build your workspace again.
Remember to source your workspace after building it. Sometimes, I need to run rospack profile
even after sourcing my workspace so that the newly built nodes get indexed. I don't know why, and never bothered looking into it, as it's a minor issue to me and happens very rarely.
I hope it helps.