Livox-SDK / livox_ros2_driver

Livox device driver under Ros2, support Lidar Mid-40, Mid-70, Tele-15, Horizon, Avia.
Other
85 stars 88 forks source link

PointCloud rate issue (CustomFormat) #39

Open Eragon123 opened 8 months ago

Eragon123 commented 8 months ago

There seems to be an issue with the Custom PointCloud Format. When I select xfer_format = 1 then for a publish_freq of 50Hz I only get around 27-30Hz and for a publish_freq of 10Hz an actual lidar pointcloud rate on the /livox/lidar topic of 6.5Hz. The imu publish frequency always seems to match the expected frequency of

What does work:

  1. However when I use the ROS1 driver in a different Docker Container on the same system I have no issue with the frame rate and the CPU usage is only around 9% where for the ROS2 driver with CustomPointCloud format and inadequate frequency the CPU usage is around 30%.
  2. When selecting the PointCloud2 format via xfer_format = 0 the published pointcloud frequency matches the expected lidar publish frequency (e.g. 50Hz) and the CPU usage is also ~5% similar to the ROS1 driver.

Possible problem source(s):

Notes:

Thanks for any help!

curiousityy commented 8 months ago

@Eragon123, I am facing the same issue with my AVIA. I am also facing an issue with the IMU. My IMU rate is only at 60Hz. May I know what changes you did to get the expected IMU rate?

BloodLemonS commented 2 months ago

@Eragon123, I am facing the same issue with my AVIA. I am also facing an issue with the IMU. My IMU rate is only at 60Hz. May I know what changes you did to get the expected IMU rate?

Have you been solve it? I have the same question with you