Livox-SDK / livox_ros_driver2

Livox device driver under Ros(Compatible with ros and ros2), support Lidar HAP and Mid-360.
Other
198 stars 159 forks source link

fast_lio/Pose6D.h: No such file or directory #95

Closed sangshuduo closed 7 months ago

sangshuduo commented 7 months ago

Hello,

I added livox_ros_drivers2 repo in my ROS1 application src directory, then use build.sh ROS1 to build it.

It reported compiling error 'fast_lio/Pose6D.h: No such file or directory'. After digging, I noticed the build.sh will remove ../../devel and lead to building error happening.

# TODO: Do not clear these folders, if the last build is based on the same ROS version.
rm -rf ../../build/
rm -rf ../../devel/
rm -rf ../../install/

I commented off the line to remove the devel directory, and then the build works. 

I wonder why the devel directory needs to be removed as the default behavior. What's the side effect if I comment it off?

How about removing that line of code from the script file?