15 #include <RobotAPI/libraries/armem_objects/aron/Attachment.aron.generated.h>
27 const std::string prefix = propertyPrefix;
29 def->optional(p.
memoryName, prefix +
"MemoryName");
43 this->objPoseStorage =
44 objpose::ObjectPoseStorageInterfacePrx::checkedCast(r.readingPrx);
56 std::map<std::string, bool>
60 std::map<std::string, bool>
ret;
61 auto providers = objPoseStorage->getAvailableProvidersInfo();
62 for (
const auto& [k, p] : providers)
72 const std::string& provider,
79 armarx::objpose::observer::RequestObjectsInput req;
80 req.provider = provider;
81 req.request.objectIDs = {requestObject};
84 auto requestResult = objPoseStorage->requestObjects(req);
86 if (requestResult.results.count(requestObject))
88 return requestResult.results.at(requestObject).result.success;
93 std::optional<objpose::ObjectPose>
98 auto objectPoses = objPoseStorage->getObjectPoses();
99 for (
const auto& pose : objectPoses)
103 if (oid == instanceId)
113 std::map<std::string, objpose::ObjectPose>
116 std::map<std::string, objpose::ObjectPose>
ret;
117 auto objectPoses = objPoseStorage->getObjectPoses();
118 for (
const auto& pose : objectPoses)
127 std::map<std::string, objpose::ObjectPose>
130 std::map<std::string, objpose::ObjectPose>
ret;
131 auto objectPoses = objPoseStorage->getObjectPoses();
132 for (
const auto& pose : objectPoses)