Livox-SDK / livox_ros_driver

Livox device driver under ros, support Lidar Mid-40, Mid-70, Tele-15, Horizon, Avia.
Other
388 stars 211 forks source link

livox_ros_driver/CustomMsg.h #107

Open yuchuxiang opened 3 years ago

yuchuxiang commented 3 years ago

fatal error: livox_ros_driver/CustomMsg.h: No such file or directory

include <livox_ros_driver/CustomMsg.h>

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

saganluk commented 2 years ago

你解决了这个问题没

flashlau commented 2 years ago

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

peibiao-zhang commented 2 years ago

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

maxpolzin commented 1 year ago

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})

farhad-dalirani commented 1 year ago

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,

maxpolzin commented 1 year ago

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?

farhad-dalirani commented 1 year ago

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

hipforth commented 1 year ago

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

iason-r commented 10 months ago

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