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

ArViz: discarding layer updates if component name is empty

parent f29e7e67
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
#include "ArVizStorage.h"
#include <ArmarXCore/core/logging/Logging.h>
#include <ArmarXCore/core/util/IceBlobToObject.h>
#include <ArmarXCore/core/util/ObjectToIceBlob.h>
#include <ArmarXCore/core/system/ArmarXDataPath.h>
......@@ -143,6 +144,12 @@ namespace armarx
historyEntry.timestampInMicroseconds = nowInMicroSeconds;
historyEntry.update = update;
if(update.component.empty())
{
ARMARX_WARNING << deactivateSpam(10) << "Empty `component` in ArViz update! Discarding update. Check your code ...";
continue;
}
// Insert or create the layer
bool found = false;
for (auto& layer : currentState)
......
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