Skip to content
Snippets Groups Projects
Commit 5d40c932 authored by Fabian Reister's avatar Fabian Reister
Browse files

fix for warning (comparing to optional instead of its value)

parent 0cf31373
Branches fix/cartographer-no-slam-results
No related tags found
No related merge requests found
......@@ -253,10 +253,11 @@ namespace armarx::cartographer
const DebugObserverScopedTimer timer(this, "pushInOdomData | Entire Method");
if (lastOdomTimestamp.has_value())
{
if (odomPose.timestamp <= lastOdomTimestamp)
if (odomPose.timestamp <= lastOdomTimestamp.value())
{
ARMARX_WARNING
<< "Requested to add old data into odom queue. Not willing to do this.";
<< "Requested to add old data into odom queue. Not willing to do this. It is "
<< (odomPose.timestamp - lastOdomTimestamp.value()) << "ms in the past.";
return;
}
}
......@@ -326,7 +327,8 @@ namespace armarx::cartographer
{
ARMARX_WARNING << "Requested to add old data with timestamp "
<< data.timestamp << " into laser queue for sensor "
<< data.frame << ". Not willing to do this.";
<< data.frame << ". Not willing to do this. It is "
<< (data.timestamp - lastTimestamp) << "ms in the past.";
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment