4#include <Eigen/Geometry>
18 LookAt::init(
const Base::SpecializedInitInput& in)
22 fromAron(in.parameters.target, gazeTarget.value());
24 return ::armarx::skills::Skill::InitResult{
29 LookAt::main(
const Base::SpecializedMainInput& in)
35 in.parameters.waitUntilReached,
36 in.parameters.waitTimeout_ms,
37 [
this]() { return shouldSkillTerminate(); });
41 LookAt::onStopRequested()
43 if (gazeTarget.has_value())
45 srv_->viewSelectionClient.commitGazeTarget(gazeTarget.value());
49 ::armarx::skills::SkillDescription
54 defaultParameters.target.name =
"";
55 defaultParameters.target.keepInQueue =
false;
58 defaultParameters.waitUntilReached =
false;
59 defaultParameters.waitTimeout_ms = 10000;
64 .rootProfileDefaults = defaultParameters.toAron(),
68 .parametersType = Params::ToAronType(),
static Duration Seconds(std::int64_t seconds)
Constructs a duration in seconds.
static Duration Hours(std::int64_t hours)
Constructs a duration in hours.
arondto::LookAtParams ParamType
LookAt(const Context &services)
::armarx::skills::SimpleSpecializedSkill< Params > Base
static armarx::skills::SkillDescription DefaultSkillDescription()
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
const armarx::skills::SkillID LookAt
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.
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
A result struct for skill initialization.
A result struct for th main method of a skill.