32 std::mutex callbackMutex;
42 std::vector<Callback>
any;
Dispatches gaze target lifecycle updates to registered callbacks.
void onReleased(const Callback &callback) override
void onAny(const Callback &callback) override
Called for every update, whatever its status.
void handleStatus(const gaze_targets::GazeTargetStatus &status)
Logs the update and hands it to the matching callbacks.
std::vector< Callback > released
void onScheduled(const Callback &callback) override
std::vector< Callback > any
std::vector< Callback > scheduled
std::vector< Callback > aborted
void onAborted(const Callback &callback) override
std::vector< Callback > requested
void onRequested(const Callback &callback) override
std::vector< Callback > reached
std::vector< Callback > preempted
void onReached(const Callback &callback) override
void onPreempted(const Callback &callback) override
Registration of callbacks for gaze target lifecycle updates.
std::function< void(const gaze_targets::GazeTargetStatus &)> Callback
Business Object (BO) class of GazeTargetStatus: the lifecycle of one gaze target request,...