HesaiTechnology / HesaiLidar_General_ROS

ROS driver for PandarXT PandarQT Pandar64 Pandar40P Pandar40M Pandar20A Pandar20B
Other
152 stars 101 forks source link

Compiling ROS2 branch with ROS2 Humble fails #78

Open bharadwajakshay opened 1 year ago

bharadwajakshay commented 1 year ago

Hi All, I am trying to get the ros2 branch of the HesaiLidar_General _ROS to compile with ros2 Humble. currently I am getting the following issue.

HesaiLidar_General_ROS/src/HesaiLidar_General_SDK/src/PandarGeneralRaw/src/pandarGeneral_internal.h:37:10: fatal error: tf2_ros/transform_listener.h: No such file or directory 37 | #include <tf2_ros/transform_listener.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Upon checking, this seems to happen in the Hesai general sdk code of the repo. Has anyone faced the same issue? Any help towards fixing the issues is greatly appreciated.

Changes already made :

Nothing seems to work. I'm not sure where I am going wrong, or what I am missing. Anything really helps.

shashankyld commented 1 year ago

I am having the same issue, tried the above steps but i still have this error:

0 6.878 In file included from /workspace/rosworkspace/src/HesaiLidar_General_ROS/src/HesaiLidar_General_SDK/src/PandarGeneralRaw/src/pandarGeneral_internal.cc:20:

0 6.878 /workspace/rosworkspace/src/HesaiLidar_General_ROS/src/HesaiLidar_General_SDK/src/PandarGeneralRaw/src/pandarGeneral_internal.h:37:10: fatal error: tf2_ros/transform_listener.h: No such file or directory

0 6.878 37 | #include <tf2_ros/transform_listener.h>

yangfanFred commented 8 months ago

Hi Shay and Shashank,

We have launched ROS2.0 project, ROS2.0 versions are fully supported. Please try use the new project.

Thanks, Fred

theinge9 commented 3 months ago

Hello Fred,

Does the ROS2.0 project mean to this package with ROS2 branch or that one https://github.com/HesaiTechnology/HesaiLidar_ROS_2.0? I am confused in ROS2 driver for XT32. Really looking forward to your advice.