Skip to content
Snippets Groups Projects
Commit c3a72037 authored by Tobias Gröger's avatar Tobias Gröger
Browse files

RobotStateMemory: extra{bool,int,byte} added to proprioception struct

parent 4746fa33
No related branches found
No related tags found
No related merge requests found
Pipeline #15678 passed
......@@ -267,6 +267,31 @@
</Dict>
</ObjectChild>
<ObjectChild key="extraBools">
<Dict>
<bool />
</Dict>
</ObjectChild>
<ObjectChild key="extraShorts">
<Dict>
<int32 />
</Dict>
</ObjectChild>
<ObjectChild key="extraInts">
<Dict>
<int32 />
</Dict>
</ObjectChild>
<ObjectChild key="extraBytes">
<Dict>
<int32 />
</Dict>
</ObjectChild>
</Object>
......
#include "Armar6Converter.h"
#include <cstddef>
#include <SimoxUtility/algorithm/get_map_keys_values.h>
#include <SimoxUtility/algorithm/advanced.h>
#include <RobotAPI/interface/units/RobotUnit/RobotUnitInterface.h>
#include <RobotAPI/libraries/RobotUnitDataStreamingReceiver/RobotUnitDataStreamingReceiver.h>
#include <RobotAPI/libraries/aron/core/data/variant/container/Dict.h>
......@@ -86,6 +88,18 @@ namespace armarx::armem::server::robot_state::proprioception
case RobotUnitDataStreaming::NodeTypeLong:
dto.extraLongs[key] = getValueAs<long>(value);
break;
case RobotUnitDataStreaming::NodeTypeBool:
dto.extraBools[key] = getValueAs<bool>(value);
break;
case RobotUnitDataStreaming::NodeTypeInt:
dto.extraInts[key] = getValueAs<int>(value);
break;
case RobotUnitDataStreaming::NodeTypeShort:
dto.extraShorts[key] = getValueAs<Ice::Short>(value);
break;
case RobotUnitDataStreaming::NodeTypeByte:
dto.extraBytes[key] = getValueAs<Ice::Byte>(value);
break;
default:
ARMARX_DEBUG << "Cannot handle extra field '" << key << "' of type "
<< RobotUnitDataStreaming::DataEntryNames.to_name(value.entry.type);
......
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