Go to the documentation of this file.
33 #include <VisionX/libraries/armem_human/aron/FaceRecognition.aron.generated.h>
34 #include <VisionX/libraries/armem_human/aron/HumanPose.aron.generated.h>
35 #include <VisionX/libraries/armem_human/aron/Profile.aron.generated.h>
53 def->required(properties.max_face_head_distance,
"maxFaceHeadDistance");
60 this->updateConsumer =
UpdateConsumer(properties.max_face_head_distance);
81 PersonInstanceUpdater::run()
86 armem::client::Reader faceRecognitionReader =
88 auto faceRecognitionCallback =
90 faceRecognitionReader](
const std::vector<armem::MemoryID>& updatedSnapshotIDs)
93 armem::client::QueryResult result =
100 armarx::human::arondto::FaceRecognition dto =
101 instance.dataAs<armarx::human::arondto::FaceRecognition>();
105 faceRecognition, instance.id(), this->memoryNameSystem());
109 armem::client::Reader poseReader =
112 [
this, poseReader](
const std::vector<armem::MemoryID>& updatedSnapshotIDs)
115 armem::client::QueryResult result = poseReader.
queryMemoryIDs(updatedSnapshotIDs);
121 armarx::human::arondto::HumanPose dto =
122 instance.dataAs<armarx::human::arondto::HumanPose>();
126 humanPose, instance.id(), this->memoryNameSystem());
130 armem::client::Reader profileReader =
132 auto profileCallback =
133 [
this, profileReader](
const std::vector<armem::MemoryID>& updatedSnapshotIDs)
136 armem::client::QueryResult result =
151 faceRecognitionCallback);
void onDisconnectComponent() override
static const std::string provider_name
armem::wm::EntityInstance EntityInstance
wm::Memory memory
The slice of the memory that matched the query.
const armem::MemoryID FaceRecognitionCoreSegmentID
void onInitComponent() override
void consumeFaceRecognitionUpdate(armarx::armem::human::FaceRecognition faceRecognition, armarx::armem::MemoryID faceRecognitionID, armarx::armem::client::MemoryNameSystem mns)
MemoryNameSystem & memoryNameSystem()
void consumeProfileUpdate(armarx::human::arondto::Profile profile, armarx::armem::MemoryID profileID, armarx::armem::client::MemoryNameSystem mns)
QueryResult queryMemoryIDs(const std::vector< MemoryID > &ids, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Query a specific set of memory IDs.
void consumePoseUpdate(armarx::armem::human::HumanPose humanPose, armarx::armem::MemoryID poseID, armarx::armem::client::MemoryNameSystem mns)
armarx::human::arondto::Profile Profile
SubscriptionHandle subscribe(const MemoryID &subscriptionID, Callback Callback)
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Default component property definition container.
const armem::MemoryID ProfileCoreSegmentID
bool forEachInstance(InstanceFunctionT &&func)
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
const armem::MemoryID PoseCoreSegmentID
std::string getDefaultName() const override
Reader getReader(const MemoryID &memoryID)
Get a reader to the given memory name.
void onExitComponent() override
void onConnectComponent() override
static std::string GetDefaultName()
Get the component's default name.