FAST_LIO icon indicating copy to clipboard operation
FAST_LIO copied to clipboard

Pose6D.h problem during catkin_make

Open smileyenot983 opened this issue 2 years ago • 5 comments

Hello everyone, i am trying to build the package, but when i write catkin_make it fails being unable to find Pose6D.h:

[ 8%] Building CXX object FAST_LIO/CMakeFiles/fastlio_mapping.dir/src/laserMapping.cpp.o In file included from /home/ramil/catkin_ws/src/FAST_LIO/src/IMU_Processing.hpp:11:0, from /home/ramil/catkin_ws/src/FAST_LIO/src/laserMapping.cpp:46: /home/ramil/catkin_ws/src/FAST_LIO/include/common_lib.h:8:10: fatal error: fast_lio/Pose6D.h: No such file or directory #include <fast_lio/Pose6D.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated.

smileyenot983 avatar Mar 23 '22 07:03 smileyenot983

just build again, maybe need several times

XW-HKU avatar Mar 23 '22 11:03 XW-HKU

After i build it for the second time i had same error, i have found discussions about creating custom ROS messages and found difference between their CMakeLists and this repo's. I have just added genmsg into find_package

find_package(catkin REQUIRED COMPONENTS geometry_msgs nav_msgs sensor_msgs roscpp rospy std_msgs pcl_ros tf livox_ros_driver message_generation eigen_conversions genmsg )

and also added new line add_dependencies(fastlio_mapping fast_lio_generate_messages_cpp)

That worked for me

smileyenot983 avatar Mar 24 '22 10:03 smileyenot983

Please check your running environment, it might be caused by the hardware

I experienced same error message, and I found this case caused by limited CPU cores and RAM.

I used running this process in a VirtualBox machine with only 1 CPU and 2GB RAM, after I increased CPU cores to 4 cores and 4GB RAM, then problem resolved.

infinitysky avatar Apr 03 '22 13:04 infinitysky

try catkin_make -j1

srinivasrama avatar May 26 '22 01:05 srinivasrama

After i build it for the second time i had same error, i have found discussions about creating custom ROS messages and found difference between their CMakeLists and this repo's. I have just added genmsg into find_package

find_package(catkin REQUIRED COMPONENTS geometry_msgs nav_msgs sensor_msgs roscpp rospy std_msgs pcl_ros tf livox_ros_driver message_generation eigen_conversions genmsg )

and also added new line add_dependencies(fastlio_mapping fast_lio_generate_messages_cpp)

That worked for me

After replacing "genmsg" with "message_generation" (which is already in the CMakeLists actually), this solution worked for me.

SeanZsya avatar Oct 04 '22 12:10 SeanZsya

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 31 '22 09:12 stale[bot]

After i build it for the second time i had same error, i have found discussions about creating custom ROS messages and found difference between their CMakeLists and this repo's. I have just added genmsg into find_package

find_package(catkin REQUIRED COMPONENTS geometry_msgs nav_msgs sensor_msgs roscpp rospy std_msgs pcl_ros tf livox_ros_driver message_generation eigen_conversions genmsg )

and also added new line add_dependencies(fastlio_mapping fast_lio_generate_messages_cpp)

That worked for me

In our case (Ubuntu 20.04, ROS Noetic), we addressed this issue by following the two steps in the CMakeLists.txt file:

  1. Add the genmsg into the find_package, which means: find_package(catkin REQUIRED COMPONENTS geometry_msgs nav_msgs sensor_msgs roscpp rospy std_msgs pcl_ros tf livox_ros_driver message_generation eigen_conversions genmsg)
  2. Add the new line: add_dependencies(fastlio_mapping fast_lio_gencfg fast_lio_generate_messages_cpp)

WilliamWoo45 avatar Mar 03 '23 13:03 WilliamWoo45

CMakeFiles/Makefile2:531: recipe for target 'FAST_LIO/CMakeFiles/fastlio_mapping.dir/all' failed

Upgrading RAM from 4GB to 8GB solved issue for Ubuntu 18.04, ROS Melodic on VMware Fusion.

maripuusiim avatar Mar 04 '23 15:03 maripuusiim

Hello, I have also encountered the same problem. After following your method, it still doesn't work

fanhuigui avatar Apr 04 '23 10:04 fanhuigui

It works for me: just catkin_make again, no such error now.

junzhang2016 avatar Apr 11 '23 14:04 junzhang2016

just run catkin_make again, this works for me

openhe-hub avatar May 20 '23 17:05 openhe-hub

I solved the problem: add pose6D.h to the inclue file the pose6D.h can be downloaded in the path: https://github.com/lus6-Jenny/MR_SLAM/blob/ce1ca08520f73183e48741406444418dd2264f00/Localization/devel/include/fast_lio/Pose6D.h#L4

guchangjun avatar Aug 23 '23 03:08 guchangjun

I solved the problem: add pose6D.h to the inclue file the pose6D.h can be downloaded in the path: https://github.com/lus6-Jenny/MR_SLAM/blob/ce1ca08520f73183e48741406444418dd2264f00/Localization/devel/include/fast_lio/Pose6D.h#L4

Thank you. This solution fixes the annoying build issue finally and is quite straightforward.

sangshuduo avatar Nov 30 '23 20:11 sangshuduo

I have the same problem of Pose6D.h during catkin_make of FAST-LIO2. My environment is Ubuntu 20 with ROS noetic. I'm using livox_ros_driver2 and livox_sdk2 for mid-360 lidar. I tried using catkin_make -j1 but the build problem still existed.

I realised that I put FAST-LIO under the same workspace as the livox_ros_driver2. So I managed to solve the problem in this way

  1. Separate the workspace for livox_ros_driver2 as the ros driver is built using its own ./build.sh ROS1 script. Source the livox_ros_driver2 workspace.
  2. Put the FAST-LIO and POINT-LIO in another workspace folder and catkin_make as usual.

I hope this helps other people having the same problem.

oscarkfpang avatar Jan 29 '24 12:01 oscarkfpang

I have the same problem of Pose6D.h during catkin_make of FAST-LIO2. My environment is Ubuntu 20 with ROS noetic. I'm using livox_ros_driver2 and livox_sdk2 for mid-360 lidar. I tried using catkin_make -j1 but the build problem still existed.

I realised that I put FAST-LIO under the same workspace as the livox_ros_driver2. So I managed to solve the problem in this way

  1. Separate the workspace for livox_ros_driver2 as the ros driver is built using its own ./build.sh ROS1 script. Source the livox_ros_driver2 workspace.
  2. Put the FAST-LIO and POINT-LIO in another workspace folder and catkin_make as usual.

I hope this helps other people having the same problem.

Great, thanks! This is exactly what I need.

yuminhhuang avatar May 06 '24 14:05 yuminhhuang