8 #include <RobotAPI/interface/armem/actions.h>
9 #include <RobotAPI/interface/armem/commit.h>
10 #include <RobotAPI/interface/armem/memory.h>
23 ice.memoryName =
id.memoryName;
24 ice.coreSegmentName =
id.coreSegmentName;
25 ice.providerSegmentName =
id.providerSegmentName;
26 ice.entityName =
id.entityName;
27 toIce(ice.timestamp,
id.timestamp);
28 ice.instanceIndex =
id.instanceIndex;
33 id.memoryName = ice.memoryName;
34 id.coreSegmentName = ice.coreSegmentName;
35 id.providerSegmentName = ice.providerSegmentName;
36 id.entityName = ice.entityName;
37 fromIce(ice.timestamp,
id.timestamp);
38 id.instanceIndex = ice.instanceIndex;
44 for (
const auto& ice_update : ice.updates)
56 data::EntityUpdate& ice_update = ice.updates.emplace_back();
64 for (
const auto& ice_res : ice.results)
74 for (
const auto& res : result.
results)
76 data::EntityUpdateResult& ice_res = ice.results.emplace_back();
85 update.instancesData.clear();
86 update.instancesData.reserve(ice.instancesData.size());
87 std::transform(ice.instancesData.begin(), ice.instancesData.end(), std::back_inserter(
update.instancesData),
92 update.confidence = ice.confidence;
100 ice.instancesData.clear();
101 ice.instancesData.reserve(
update.instancesData.size());
107 ice.confidence =
update.confidence;
130 for (
const auto& ice_update : ice.updates)
140 update.arrivedTime = timeArrived;