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?
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.
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?