20 providerSegmentName(providerSegmentName), memoryNameSystem(mns)
22 memoryReader = memoryNameSystem.getReader(
31 ARMARX_INFO <<
"Subscribing to gaze target status updates under "
35 memoryNameSystem.subscribe(subscriptionID,
this, &MemorySubscriber::onEntityUpdate);
41 MemorySubscriber::onEntityUpdate(
const std::vector<armem::MemoryID>& snapshotIDs)
48 <<
"Failed to look up gaze target status updates: "
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
MemoryID withProviderSegmentName(const std::string &name) const
MemoryID withCoreSegmentName(const std::string &name) const
MemoryID withMemoryName(const std::string &name) const
std::string str(bool escapeDelimiters=true) const
Get a string representation of this memory ID.
The memory name system (MNS) client.
QueryResult queryMemoryIDs(const std::vector< MemoryID > &ids, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Query a specific set of memory IDs.
void handleMemory(const armem::wm::Memory &memory)
Dispatches every GazeTargetStatus instance found, oldest first.
MemorySubscriber(const std::string &providerSegmentName, armem::client::MemoryNameSystem &mns)
~MemorySubscriber() override
#define ARMARX_INFO
The normal logging level.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
const std::string ViewMemoryName
const std::string GazeTargetStatusCoreSegmentName
Lifecycle of the requests in GazeTarget.
wm::Memory memory
The slice of the memory that matched the query.