ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This seems like a linker error. How are you linking the resource_retriever
libraries? Can you show your CMakeLists.txt
?
2 | No.2 Revision |
This seems like a linker error. How are you linking the resource_retriever
libraries? Can you show your CMakeLists.txt
?
Edit:
Adding
resource_retriever
tofind_package
did the trick. But still when I include something like this, how do I know what to add to theCMakeLists.txt
As to your specific question "what to add to CMakeLists.txt
": in case of C++ and Python the rule is relatively straightforward: if you use anything from a package, that package becomes a dependency of your package.
In those cases you have to add the dependency to your package.xml
and your CMakeLists.txt
if you are working in C++.
If you are using Python, only the package.xml
needs to be updated (as Python doesn't have any build dependencies (or at least: regular, simple Python packages don't)).
See the Catkin documentation on the general subject.