catkin_package() DEPENDS on the catkin package 'roscpp' which must therefore be listed as a run dependency in the package.xml
时间: 2024-04-22 17:27:56 浏览: 90
package.xml
When using the `catkin_package()` function in your CMakeLists.txt file, if you have a dependency on the 'roscpp' package, it needs to be listed as a run dependency in the package.xml file.
To fix this issue, open the package.xml file of your catkin package and locate the `<run_depend>` section. Add the following line within the `<run_depend>` section:
```xml
<run_depend>roscpp</run_depend>
```
Save the file and rebuild your catkin workspace. This should resolve the warning you mentioned.
阅读全文