Commit 9619a5ba authored by oscar's avatar oscar

提交时间匹配加100

parent 6316da6f
......@@ -618,7 +618,7 @@ objTrackListPtr TrackingRos::GetNearestCloudMsg(unsigned long long timestamp)
for (int i = 0; i < m_objsCloudQueue.size(); i++)
{
//unsigned long long time_s = m_objsCloudQueue[i]->cloud.header.stamp.toSec() * 1000000;
unsigned long long time_s = (unsigned long long)m_objsCloudQueue[i]->cloud.header.stamp.sec * 1000000 + (unsigned long long)m_objsCloudQueue[i]->cloud.header.stamp.nsec* 1e-3;
unsigned long long time_s = (unsigned long long)m_objsCloudQueue[i]->cloud.header.stamp.sec * 1000000 + (unsigned long long)m_objsCloudQueue[i]->cloud.header.stamp.nsec* 1e-3 + 100;
if (labs(timestamp - time_s) < std::min(100, interval))
{
msg = m_objsCloudQueue[i];
......
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