From 6a211f3715a52b939915c4706785a7c1c9b572a4 Mon Sep 17 00:00:00 2001 From: livox Date: Tue, 13 Aug 2019 17:21:17 +0800 Subject: [PATCH] resolve the timestamp error (livox_hub.cpp) resolve the timestamp error in pointcloud2 msg --- livox_ros_driver/livox_hub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livox_ros_driver/livox_hub.cpp b/livox_ros_driver/livox_hub.cpp index 7fbdb82..13e5c97 100755 --- a/livox_ros_driver/livox_hub.cpp +++ b/livox_ros_driver/livox_hub.cpp @@ -432,7 +432,7 @@ static uint32_t PublishPointcloud2(StoragePacketQueue* queue, uint32_t packet_nu if (!cloud->width) { //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); } cloud->width += storage_packet.point_num;