Livox-SDK / livox_ros_driver2

Livox device driver under Ros(Compatible with ros and ros2), support Lidar HAP and Mid-360.
Other
275 stars 232 forks source link

使用 pointcloud2 格式时 msg 的时间戳是输出发生时的时间 还是数据解包的时间? #146

Open lncopilot opened 2 months ago

lncopilot commented 2 months ago

timestamp 字段里的呢?

Livox-louie commented 1 month ago

@lncopilot 如果雷达做了时间同步,这个时间戳应该是点云的生成时间,否则则为解包时间。具体可以参考代码:https://github.com/Livox-SDK/livox_ros_driver2/blob/6b9356cadf77084619ba406e6a0eb41163b08039/src/comm/pub_handler.cpp#L143