Commit 5a1ea3dc authored by wangdawei's avatar wangdawei

test

parent 7f8a81c8
......@@ -1129,7 +1129,10 @@ void Convert::calcPointXYZIT(const pandar_msgs::PandarPacket &packet, int cursor
point.z = distance * m_fSinAllAngle[pitchIdx];
point.intensity = unit.u8Intensity;
point.timestamp = unix_second + (static_cast<double>(pkt.tail.nTimestamp)) / 1000000.0;
LOG(INFO) << std::setprecision(15) << "point.timestamp 1: " << point.timestamp;
point.timestamp = point.timestamp + m_objLaserOffset.getBlockTS(blockid, pkt.tail.nReturnMode, mode, pkt.head.u8LaserNum) / 1000000000.0 + offset / 1000000000.0;
LOG(INFO) << std::setprecision(15) << "point.timestamp 2: " << point.timestamp;
exit(0);
if(0 == m_dTimestamp) {
m_dTimestamp = point.timestamp;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment