12 const TimeStep& timestep,
13 const DataEntry& dataEntry)
15 switch (dataEntry.type)
17 case RobotUnitDataStreaming::NodeTypeFloat:
19 float value = RobotUnitDataStreamingReceiver::GetAs<Ice::Float>(timestep, dataEntry);
20 return std::make_shared<aron::data::Float>(
value);
22 case RobotUnitDataStreaming::NodeTypeBool:
24 bool value = RobotUnitDataStreamingReceiver::GetAs<bool>(timestep, dataEntry);
25 return std::make_shared<aron::data::Bool>(
value);
27 case RobotUnitDataStreaming::NodeTypeByte:
29 int value = RobotUnitDataStreamingReceiver::GetAs<Ice::Byte>(timestep, dataEntry);
30 return std::make_shared<aron::data::Int>(
value);
32 case RobotUnitDataStreaming::NodeTypeShort:
34 int value = RobotUnitDataStreamingReceiver::GetAs<Ice::Short>(timestep, dataEntry);
35 return std::make_shared<aron::data::Int>(
value);
37 case RobotUnitDataStreaming::NodeTypeInt:
39 int value = RobotUnitDataStreamingReceiver::GetAs<Ice::Int>(timestep, dataEntry);
40 return std::make_shared<aron::data::Int>(
value);
42 case RobotUnitDataStreaming::NodeTypeLong:
44 long value = RobotUnitDataStreamingReceiver::GetAs<Ice::Long>(timestep, dataEntry);
45 return std::make_shared<aron::data::Long>(
value);
47 case RobotUnitDataStreaming::NodeTypeDouble:
49 double value = RobotUnitDataStreamingReceiver::GetAs<Ice::Double>(timestep, dataEntry);
50 return std::make_shared<aron::data::Double>(
value);
60 { NodeTypeBool,
"Bool" },
61 { NodeTypeByte,
"Byte" },
62 { NodeTypeShort,
"Short" },
63 { NodeTypeInt,
"Int" },
64 { NodeTypeLong,
"Long" },
65 { NodeTypeFloat,
"Float" },
66 { NodeTypeDouble,
"Double" },