Commit 80c27e72 authored by wangdawei's avatar wangdawei

test

parent c83adb5c
......@@ -1266,13 +1266,13 @@ void Convert::calcPointXYZIT(const pandar_msgs::PandarPacket &packet, int cursor
} else {
point_index = (u16Azimuth - start_angle_) / m_iAngleSize * m_iLaserNum + i;
}
if(m_OutMsgArray[cursor]->points[point_index].ring == 0){
LOG_EVERY_N(INFO, 1800) << std::setprecision(15) << "point.timestamp: " << point.timestamp
<< " point_index: " << point_index
<< " azimuth: " << azimuth;
// LOG_EVERY_N(INFO, 1800) << std::setprecision(15) << "point.timestamp: " << point.timestamp
// << " point_index: " << point_index
// << " azimuth: " << azimuth;
m_OutMsgArray[cursor]->push_back(point);
// if(m_OutMsgArray[cursor]->points[point_index].ring == 0){
// m_OutMsgArray[cursor]->points[point_index] = point;
m_OutMsgArray[cursor]->push_back(point);
}
// }
else{
pthread_mutex_lock(&m_RedundantPointLock);
if (point.timestamp - m_OutMsgArray[cursor]->points[point_index].timestamp > 0.01 && point.timestamp - m_OutMsgArray[cursor]->points[point_index].timestamp < 0.11)
......
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