livox_ros_driver icon indicating copy to clipboard operation
livox_ros_driver copied to clipboard

跑loam_horizon时catkin_make报错,找不到livox_ros_driver

Open AliveForU opened this issue 4 years ago • 14 comments

按照教程装的livox_ros_driver,测试已经安装成功了,但是跑loam_horizon时,却说找不到livox_ros_driver,不知道哪里出错了

这是错误代码: Could not find the required component 'livox_ros_driver'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "livox_ros_driver" with any of the following names:

livox_ros_driverConfig.cmake
livox_ros_driver-config.cmake

AliveForU avatar Dec 20 '20 02:12 AliveForU

使用如下命令,清除一下编译输出文件: rm -rf build catkin_make

Livox-SDK avatar Dec 23 '20 08:12 Livox-SDK

编译后source ~/catkin_ws/devel/setup.bash试一下

Gold-finger99 avatar Jan 21 '21 15:01 Gold-finger99

same issue, cannot make

lhypds avatar Feb 17 '21 11:02 lhypds

一样的问题

hitdezhazha avatar Mar 31 '21 03:03 hitdezhazha

可以把ws_livox下的src文件夹全部移到~/catkin_ws/src里,然后把这个文件夹重新命名为livox_ros_driver,然后再catkin_make,应该就好了

inntoy avatar Jul 15 '21 11:07 inntoy

您好,该方案“rm -rf build catkin_make”没有奏效,请问是否有其他解决方案

BUG423 avatar Apr 06 '23 17:04 BUG423

已收到感谢您得来信

Gold-finger99 avatar Apr 06 '23 17:04 Gold-finger99

您好,您的邮件我已收到。————祝您每天都有个好心情!

inntoy avatar Apr 06 '23 17:04 inntoy

您好,我已经收到您的来信,非常感谢!

BUG423 avatar Apr 06 '23 17:04 BUG423

你好,该问题已经解决。可以参考该文章https://blog.csdn.net/weixin_39754100/article/details/114894454(侵权请联系删除) 两种方案: 1.把整个项目文件夹复制到livox_ros_driver的src文件夹下,再在根目录下分别执行source devel/setup.bash和catkin_make便顺利编译通过 2.在当前项目的根目录打开终端,在此终端下source livox_ros_driver的bash文件,如source ~/xxx/livox_ros_driver/devel/setup.bash,然后再catkin_make即可顺利编译

BUG423 avatar Apr 06 '23 17:04 BUG423

编译完livox_ros_driver后,会生成devel空间,devel空间下有编译所需的目录,在CMakeLists.txt添加多一行set(livox_ros_driver_DIR "/home/taotao/code/vslam/livox_driver_ws/devel/share/livox_ros_driver/cmake/"),找到livox_ros_driverConfig.cmake文件的路径

jumpjumpqaq avatar May 22 '24 10:05 jumpjumpqaq

您好,您的邮件我已收到。————祝您每天都有个好心情!

inntoy avatar May 22 '24 10:05 inntoy

已收到感谢您得来信

Gold-finger99 avatar May 22 '24 10:05 Gold-finger99

您好,我已经收到您的来信,非常感谢!祝好!

BUG423 avatar May 22 '24 10:05 BUG423