autoware.universe编译过程中的一个报错:<command-line>: fatal error: grid_map_core/eigen_plugins/FunctorsPlugin.

文章目录

  • 前言


前言

在autoware.universe的编译过程中,报了一个错误:
: fatal error: grid_map_core/eigen_plugins/FunctorsPlugin.hpp: 没有那个文件或目录
compilation terminated.
gmake[2]: *** [CMakeFiles/autoware_behavior_velocity_planner_lib.dir/build.make:76:CMakeFiles/autoware_behavior_velocity_planner_lib.dir/src/node.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:616:CMakeFiles/autoware_behavior_velocity_planner_lib.dir/all] 错误 2
gmake: *** [Makefile:146:all] 错误 2

这是因为缺失了库文件。
后来在ros2中安装了之后,发现还是找不到。

然后看编译的错误结果,是autoware_behavior_velocity_planner中找不到,于是我在behavior_velocity_planner/autoware_behavior_velocity_planner/CMakeLists.txt中,添加了以下几行:

find_package(grid_map_core REQUIRED)
find_package(grid_map_ros REQUIRED)

# Add grid_map include directories
include_directories(
  ${grid_map_core_INCLUDE_DIRS}
  ${grid_map_ros_INCLUDE_DIRS}
)

再编译,发现autoware_motion_velocity_planner_node中和autoware_behavior_velocity_occlusion_spot_module中也出现了这个问题,于是也分别在其/CMakeLists.txt中。

后续编译成功。


你可能感兴趣的:(算法,自动驾驶)