18 const bool waitUntilReached,
19 const std::int64_t waitTimeout_ms,
20 const std::function<
bool()>& shouldAbort)
24 if (not waitUntilReached)
28 return ::armarx::skills::Skill::MainResult{
37 return ::armarx::skills::Skill::MainResult{
47 return ::armarx::skills::Skill::MainResult{
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
armarx::armem::MemoryID commitGazeTarget(const gaze_targets::GazeTarget &target)
void releaseGazeTarget(const gaze_targets::GazeTarget &target)
Give up a target: lowest priority, no duration, not kept in the queue.
GazeTargetWaiter::Result commitGazeTargetAndWait(const gaze_targets::GazeTarget &target, const armarx::Duration &timeout, const std::function< bool()> &shouldAbort={})
Commit a gaze target and block until the robot's gaze is fixed on it.
std::string message
Reason, for the terminal states. Empty otherwise.
Business Object (BO) class of GazeTarget.
#define ARMARX_INFO
The normal logging level.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
This file is part of ArmarX.
::armarx::skills::Skill::MainResult commitAndMaybeWait(client::ViewSelection &viewSelection, const gaze_targets::GazeTarget &target, const bool waitUntilReached, const std::int64_t waitTimeout_ms, const std::function< bool()> &shouldAbort)
Commit a gaze target, optionally blocking until the robot's gaze is fixed on it.
A result struct for th main method of a skill.
gaze_targets::GazeTargetStatus status
std::string message
Why the wait ended, if it did not end on a status update.