Go to the documentation of this file.
121 std::optional<wm::EntitySnapshot> _pollBlocking(
const SnapshotCallbackT& callback);
132 std::atomic_bool isPolling =
false;
133 std::atomic_bool pollingStoppedExternally =
false;
135 std::thread pollingThread;
Reads data from a memory server.
void pollAsync(const SnapshotCallbackT &callback)
Poll in a new thread as long as callback returns true.
std::function< bool(const wm::EntitySnapshot &)> SnapshotCallbackT
Callback called on each entity snapshot in the queried ID.
std::optional< wm::EntitySnapshot > pollBlocking(const SnapshotCallbackT &callback)
Poll in this thread as long as callback returns true.
ReadStream()
Inizialize a ReadStream which does not represent a stream.
This file is part of ArmarX.
Client-side working memory entity snapshot.
Represents a point in time.
A stream reading entity snapshots from the memory.
Simple rate limiter for use in loops to maintain a certain frequency given a clock.
static Frequency Hertz(std::int64_t hertz)
std::optional< wm::EntitySnapshot > pollOnce(const SnapshotCallbackT &callback)
Perform one query and call the callbacks on each snapshot.
void stop()
Stop a running polling loop.