21 constexpr int pollIntervalMs = 100;
26 providerSegmentName(providerSegmentName),
27 memoryNameSystem(mns),
30 memoryReader = memoryNameSystem.getReader(
33 ARMARX_INFO <<
"Polling gaze target status updates for provider segment "
34 <<
QUOTED(providerSegmentName) <<
" every " << pollIntervalMs <<
" ms.";
42 if (task and task->isRunning())
68 <<
"Failed to poll gaze target status updates: " << result.
errorMessage;
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
static DateTime Now()
Current time on the virtual clock.
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
The periodic task executes one thread method repeatedly using the time period specified in the constr...
The memory name system (MNS) client.
QueryResult query(const QueryInput &input) const
Perform a query on the WM.
The query::Builder class provides a fluent-style specification of hierarchical queries.
QueryInput buildQueryInput() const
CoreSegmentSelector & coreSegments()
Start specifying core segments.
CoreSegmentSelector & withName(const std::string &name) override
ProviderSegmentSelector & providerSegments()
Start specifying provider segments.
EntitySelector & all() override
SnapshotSelector & snapshots()
Start specifying entity snapshots.
ProviderSegmentSelector & withName(const std::string &name) override
EntitySelector & entities()
Start specifying entities.
SnapshotSelector & timeRange(Time min, Time max)
Clock to get date/time from a specific clock type or wait for certain durations or until certain date...
Represents a point in time.
MemoryPolling(const std::string &providerSegmentName, armem::client::MemoryNameSystem &mns)
~MemoryPolling() override
void handleMemory(const armem::wm::Memory &memory)
Dispatches every GazeTargetStatus instance found, oldest first.
#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.
This file offers overloads of toIce() and fromIce() functions for STL container types.
wm::Memory memory
The slice of the memory that matched the query.