ubuntu16.04和14.04编译ros包的区别
CMakeLists.txt
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
在14.04可能没有${catkin_INCLUDE_DIRS}也能编译成功,但是在16.04我要要进去才行。**如果没有有时候会出现ros/ros.h: No such file or directory
package.xml
<package format="2">
以及
<exec_depend>
但是有时候在16.04用run_depend也行。如果想要run_depend在16.04上运行通过,则需要
<package>
以及
<run_depend>
本文详细介绍了在Ubuntu16.04环境下编译ROS包时遇到的问题及解决方法,特别是关于CMakeLists.txt文件中include_directories配置及package.xml文件依赖项的正确设置。
2172

被折叠的 条评论
为什么被折叠?



