14 #include <RobotAPI/libraries/armem_objects/aron/Attachment.aron.generated.h>
29 const std::string prefix = propertyPrefix;
31 def->optional(properties.memoryName, prefix +
"MemoryName");
33 def->optional(properties.coreSegmentName,
34 prefix +
"CoreSegment",
35 "Name of the memory core segment to use for object instances.");
42 ARMARX_IMPORTANT <<
"Writer: Waiting for memory '" << properties.memoryName <<
"' ...";
45 memoryWriter = memoryNameSystem.
useWriter(properties.memoryName);
46 ARMARX_IMPORTANT <<
"Writer: Connected to memory '" << properties.memoryName <<
"'";
57 const std::string& provider,
63 e.entityID.memoryName = properties.memoryName;
64 e.entityID.coreSegmentName = properties.coreSegmentName;
65 e.entityID.providerSegmentName = provider;
66 e.entityID.entityName = inst.pose.objectID.dataset +
"/" + inst.pose.objectID.className +
67 "/" + inst.pose.objectID.instanceName;
70 e.instancesData = {inst.toAron()};
72 auto res = memoryWriter.
commit(
c);
74 if (!res.allSuccess())
76 ARMARX_ERROR <<
"Failed to commit an ObjectInstance to memory: "
77 << res.allErrorMessages();