Commit 03fb40c8 authored by oscar's avatar oscar

更新

parent a924c89e
......@@ -444,12 +444,12 @@ 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;
if (abs(timestamp - time_s) < std::min(100, interval))
if (abs64(timestamp - time_s) < std::min(100, interval))
{
msg = m_objsCloudQueue[i];
findIdx = i;
}
interval = abs(timestamp - time_s);
interval = abs64(timestamp - time_s);
}
if (findIdx != -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