GithubHelp home page GithubHelp logo

Comments (4)

yanyifengbupt avatar yanyifengbupt commented on June 12, 2024

错误原因:devel/include/filter无PointArray.h
解决方法:
1.打开src/Active-SLAM-with-Cartographer/filter/CMakeLists.txt,添加
catkin_package(
CATKIN_DEPENDS geometry_msgs roscpp rospy std_msgs message_runtime
)
2.在同目录下的package.xml文件中添加
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>

from active-slam-with-cartographer.

pyyyz avatar pyyyz commented on June 12, 2024

错误原因:devel/include/filter无PointArray.h
解决方法:
1.打开src/Active-SLAM-with-Cartographer/filter/CMakeLists.txt,添加
catkin_package(
CATKIN_DEPENDS geometry_msgs roscpp rospy std_msgs message_runtime
)
2.在同目录下的package.xml文件中添加
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>

感谢您的回复!已添加,但问题仍未解决,还是报这个错误:fatal error: filter/PointArray.h: 没有那个文件或目录

from active-slam-with-cartographer.

pyyyz avatar pyyyz commented on June 12, 2024

请问您提供的源码中,src/Active-SLAM-with-Cartographer/filter/CMakeLists.txt中,是否要取消掉
find_package(catkin REQUIRED COMPONENTS
rrt_exploration
)这句的注释呢?
下载下来的源码中这句被注释掉了

from active-slam-with-cartographer.

yanyifengbupt avatar yanyifengbupt commented on June 12, 2024

我没有取消掉
find_package(catkin REQUIRED COMPONENTS
rrt_exploration
)这句注释。
你可以尝试清除之前编译的内容,再次编译。
一般这种自定义消息找不到头文件的问题主要就是在cmakelist.txt和package.xml里面进行配置,你可以看看网上相关ros自定义消息如何配置的教程。

from active-slam-with-cartographer.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.