fatal error: tf_eigen.h: No such file or directory compilation terminated.

asked 2020-05-07 20:35:09 -0600

yiying gravatar image

I'm using ubuntu 16.04 on a Huawei Matebook-x, with kernel 4.15.0-91-generic. ROS distro: kinetic and version 1.12.14.

Had this error:

/home/yiying/fetchit_ws/src/FetchIt/karlvin_simulation/niryo_one_d415_grasp/src/niryo_one_d415_crop_box.cpp:12:22: fatal error: tf_eigen.h: No such file or directory
compilation terminated.
FetchIt/karlvin_simulation/niryo_one_d415_grasp/CMakeFiles/niryo_one_d415_crop_box.dir/build.make:62: recipe for target 'FetchIt/karlvin_simulation/niryo_one_d415_grasp/CMakeFiles/niryo_one_d415_crop_box.dir/src/niryo_one_d415_crop_box.cpp.o' failed
make[2]: *** [FetchIt/karlvin_simulation/niryo_one_d415_grasp/CMakeFiles/niryo_one_d415_crop_box.dir/src/niryo_one_d415_crop_box.cpp.o] Error 1
CMakeFiles/Makefile2:8041: recipe for target 'FetchIt/karlvin_simulation/niryo_one_d415_grasp/CMakeFiles/niryo_one_d415_crop_box.dir/all' failed
make[1]: *** [FetchIt/karlvin_simulation/niryo_one_d415_grasp/CMakeFiles/niryo_one_d415_crop_box.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I have find_packaged a couple tf related packages in CMakeLists.txt

find_package(catkin REQUIRED COMPONENTS
roscpp
moveit_core
moveit_ros_planning
moveit_ros_planning_interface
moveit_ros_perception
pluginlib
geometric_shapes
pcl_ros
pcl_conversions
tf
tf2
tf2_ros
tf2_eigen
tf2_geometry_msgs
tf_conversions
vision_msgs)

and package.xml:

<build_depend>pluginlib</build_depend>
<build_depend>eigen</build_depend>
<build_depend>moveit_core</build_depend>
<build_depend>moveit_ros_planning</build_depend>
<build_depend>moveit_ros_planning_interface</build_depend>
<build_depend>moveit_ros_perception</build_depend>
<build_depend>geometric_shapes</build_depend>
<build_depend>rviz_visual_tools</build_depend>
<build_depend>pcl_ros</build_depend>
<build_depend>pcl_conversions</build_depend>
<build_depend>rosbag</build_depend>
<build_depend>tf</build_depend>
<build_depend>tf2</build_depend>
<build_depend>tf2_ros</build_depend>
<build_depend>tf2_eigen</build_depend>
<build_depend>tf2_geometry_msgs</build_depend>
<build_depend>tf_conversions</build_depend>
<build_depend>vision_msgs</build_depend>
<exec_depend>moveit_core</exec_depend>
<exec_depend>moveit_ros_planning</exec_depend>
<exec_depend>moveit_ros_planning_interface</exec_depend>
<exec_depend>moveit_ros_perception</exec_depend>
<exec_depend>pluginlib</exec_depend>
<exec_depend>geometric_shapes</exec_depend>
<exec_depend>pcl_ros</exec_depend>
<exec_depend>pcl_conversions</exec_depend>
<exec_depend>tf</exec_depend>
<exec_depend>tf2</exec_depend>
<exec_depend>tf2_ros</exec_depend>
<exec_depend>tf2_eigen</exec_depend>
<exec_depend>tf2_geometry_msgs</exec_depend>
<exec_depend>tf_conversions</exec_depend>
<exec_depend>vision_msgs</exec_depend>

And still, I got the compilation error listed at the begining. Thanks for you help!

edit retag flag offensive close merge delete