Commit 0c95c3f6 authored by oscar's avatar oscar

使用labs

parent 03fb40c8
......@@ -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 (abs64(timestamp - time_s) < std::min(100, interval))
if (labs(timestamp - time_s) < std::min(100, interval))
{
msg = m_objsCloudQueue[i];
findIdx = i;
}
interval = abs64(timestamp - time_s);
interval = labs(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