livox_ros_driver icon indicating copy to clipboard operation
livox_ros_driver copied to clipboard

livox_ros_driver/CustomMsg.h

Open yuchuxiang opened this issue 3 years ago • 9 comments

fatal error: livox_ros_driver/CustomMsg.h: No such file or directory #include <livox_ros_driver/CustomMsg.h>

缺少这个头文件是什么情况,在原程序包中也没找到这个livox_ros_driver/CustomMsg.h头文件,这个怎么解决?

yuchuxiang avatar Oct 15 '21 11:10 yuchuxiang

你解决了这个问题没

saganluk avatar Jun 21 '22 02:06 saganluk

在devel/include里面,不是源程序包的而是compile产生的

flashlau avatar Oct 27 '22 06:10 flashlau

我也遇到了相同的问题,解决办法是删了build和devel文件夹,多编译几次

peibiao-zhang avatar Nov 08 '22 13:11 peibiao-zhang

There is a dependency in the CMakeFile missing. Add this line to ensure the livox_ros_driver messages are compiled first. add_dependencies(r3live_LiDAR_front_end ${catkin_EXPORTED_TARGETS})

maxpolzin avatar Dec 13 '22 17:12 maxpolzin

I did not understand what you said; However, I feel your answer related to my question. I installed r3live. I want to use it. When I type rostopic hz /livox/lidar, it says:

ERROR: Cannot load message class for [livox_ros_driver/CustomMsg]. Are your messages built?

Can you explain how can I fix that?

Thank You,

farhad-dalirani avatar Jan 19 '23 16:01 farhad-dalirani

Hi @farhad-dalirani, This means that the livox_ros_driver/CustomMsg is not compiled. Have you compiled the livox_ros_driver? Have you sourced your ros_ws afterwards, e.g. source ~/catkin_ws/devel/setup.bash?

maxpolzin avatar Jan 20 '23 12:01 maxpolzin

Thank you, source ~/catkin_ws/devel/setup.bash did the job.

farhad-dalirani avatar Jan 20 '23 14:01 farhad-dalirani

There is a dependency in the CMakeFile missing. Add this line to ensure the livox_ros_driver messages are compiled first. add_dependencies(r3live_LiDAR_front_end ${catkin_EXPORTED_TARGETS})

this is useful

hipforth avatar Nov 02 '23 04:11 hipforth

There is a dependency in the CMakeFile missing. Add this line to ensure the livox_ros_driver messages are compiled first. add_dependencies(r3live_LiDAR_front_end ${catkin_EXPORTED_TARGETS})

I used your method but encountered a new problem

CMake Error at CTLO/CMakeLists.txt:22 (add_dependencies): add_dependencies called with incorrect number of arguments

It seems like there are some issues with "add_dependencies" can you tell me the answer

iason-r avatar Feb 01 '24 13:02 iason-r