请问如何解决错误:在ROS中找不到ros.h文件或目录?
- 内容介绍
- 文章标签
- 相关推荐
本文共计88个文字,预计阅读时间需要1分钟。
在程序包的`CMakeLists.txt`文件中,添加以下内容:
cmakefind_package(catkin REQUIRED COMPONENTS roscpp)include_directories(include ${catkin_INCLUDE_DIRS})
程序包下面的cmakelist.txt
加上
find_package(catkin REQUIRED COMPONENTS roscpp)
include_directories(include ${catkin_INCLUDE_DIRS} )
本文共计88个文字,预计阅读时间需要1分钟。
在程序包的`CMakeLists.txt`文件中,添加以下内容:
cmakefind_package(catkin REQUIRED COMPONENTS roscpp)include_directories(include ${catkin_INCLUDE_DIRS})
程序包下面的cmakelist.txt
加上
find_package(catkin REQUIRED COMPONENTS roscpp)
include_directories(include ${catkin_INCLUDE_DIRS} )

