11 #include <RobotAPI/libraries/armem_objects/aron/Attachment.aron.generated.h>
24 const std::string prefix = propertyPrefix;
26 def->optional(properties.memoryName, prefix +
"MemoryName");
28 def->optional(properties.coreSegmentName,
29 prefix +
"CoreSegment",
30 "Name of the memory core segment to use for object instances.");
37 ARMARX_IMPORTANT <<
"Writer: Waiting for memory '" << properties.memoryName <<
"' ...";
40 memoryWriter = memoryNameSystem.
useWriter(properties.memoryName);
41 ARMARX_IMPORTANT <<
"Writer: Connected to memory '" << properties.memoryName <<
"'";
52 const std::string& provider,
58 e.entityID.memoryName = properties.memoryName;
59 e.entityID.coreSegmentName = properties.coreSegmentName;
60 e.entityID.providerSegmentName = provider;
62 e.entityID.entityName = inst.objectID.dataset +
"/" + inst.objectID.className +
"/" +
63 inst.objectID.instanceName;
66 e.instancesData = {inst.toAron()};
68 auto res = memoryWriter.
commit(
c);
70 if (!res.allSuccess())
72 ARMARX_ERROR <<
"Failed to commit a FamiliarObjectInstance to memory: "
73 << res.allErrorMessages();