mirror of
https://github.com/Livox-SDK/livox_ros_driver.git
synced 2023-04-06 15:49:55 +08:00
resolve the timestamp error (livox_hub.cpp)
resolve the timestamp error in pointcloud2 msg
This commit is contained in:
@@ -432,7 +432,7 @@ static uint32_t PublishPointcloud2(StoragePacketQueue* queue, uint32_t packet_nu
|
|||||||
if (!cloud->width) {
|
if (!cloud->width) {
|
||||||
//cloud->header.stamp = ros::Time(timestamp/1000000000.0); // to ros time stamp
|
//cloud->header.stamp = ros::Time(timestamp/1000000000.0); // to ros time stamp
|
||||||
|
|
||||||
cloud->header.stamp = timestamp/1000000000.0; // to ros time stamp
|
cloud->header.stamp = timestamp/1000.0; // to ros time stamp
|
||||||
ROS_DEBUG("[%d]:%ld us", handle, timestamp);
|
ROS_DEBUG("[%d]:%ld us", handle, timestamp);
|
||||||
}
|
}
|
||||||
cloud->width += storage_packet.point_num;
|
cloud->width += storage_packet.point_num;
|
||||||
|
|||||||
Reference in New Issue
Block a user