Skip to content
Snippets Groups Projects
Commit f52a83b8 authored by Armar6Demo's avatar Armar6Demo
Browse files

deactivate spam

parent 1ce296e7
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,7 @@ namespace armarx
auto it = history.lower_bound(time);
if (history.size() == 0)
{
ARMARX_WARNING << deactivateSpam(1) << "History of robot state component is empty!";
return false;
}
if (time > history.rbegin()->first)
......@@ -244,7 +245,7 @@ namespace armarx
}
else if (it == history.end())
{
ARMARX_WARNING << "Could not find or interpolate a robot state for time " << IceUtil::Time::microSeconds(time).toDateTime() << " - oldest available value: " << IceUtil::Time::microSeconds(history.begin()->first).toDateTime();
ARMARX_WARNING << deactivateSpam(1) << "Could not find or interpolate a robot state for time " << IceUtil::Time::microSeconds(time).toDateTime() << " - oldest available value: " << IceUtil::Time::microSeconds(history.begin()->first).toDateTime();
return false;
}
else
......
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