Commit 68fd6537 authored by wangdawei's avatar wangdawei

test

parent 6752fd40
......@@ -437,8 +437,8 @@ void Convert::processGps(pandar_msgs::PandarGps &gpsMsg) {
}
void Convert::pushLiDARData(pandar_msgs::PandarPacket packet) {
// ROS_WARN("Convert::pushLiDARData");
m_PacketsBuffer.push_back(packet);
// ROS_WARN("Convert::pushLiDARData");
m_PacketsBuffer.push_back(packet);
}
int Convert::parseData(Pandar128PacketVersion13 &packet, const uint8_t *recvbuf,
......
......@@ -333,13 +333,13 @@ typedef struct PacketsBuffer_s {
lastOverflowed = false;
ROS_WARN("buffer recovered");
}
if(((m_iterPush > m_iterTaskEnd) && (m_iterPush - m_iterTaskEnd) > 4 * m_stepSize) ||
((m_iterPush < m_iterTaskBegin) && (m_iterTaskBegin - m_iterPush) < CIRCLE - 4 * m_stepSize)){
// if(((m_iterPush > m_iterTaskEnd) && (m_iterPush - m_iterTaskEnd) > 4 * m_stepSize) ||
// ((m_iterPush < m_iterTaskBegin) && (m_iterTaskBegin - m_iterPush) < CIRCLE - 4 * m_stepSize)){
while((((m_iterPush > m_iterTaskEnd) && (m_iterPush - m_iterTaskEnd) > 4 * m_stepSize) ||
((m_iterPush < m_iterTaskBegin) && (m_iterTaskBegin - m_iterPush) < CIRCLE - 4 * m_stepSize)))
usleep(1000);
}
// while((((m_iterPush > m_iterTaskEnd) && (m_iterPush - m_iterTaskEnd) > 4 * m_stepSize) ||
// ((m_iterPush < m_iterTaskBegin) && (m_iterTaskBegin - m_iterPush) < CIRCLE - 4 * m_stepSize)))
// usleep(1000);
// }
*(m_iterPush++) = pkt;
return 1;
}
......
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