13#include <armarx/navigation/skills/aron/RotateTowards.aron.generated.h>
19 armarx::skills::SkillDescription
25 defaultParameters.navigatingSkillParams.globalPlanningAlgorithm =
26 arondto::GlobalPlanningAlgorithm::Point2Point;
30 .description =
"Rotate the robot to face a specified location.",
31 .rootProfileDefaults = defaultParameters.toAron(),
33 .parametersType = Params::ToAronType(),
49 RotateTowardsLocation::main(
const Base::SpecializedMainInput& in)
54 in.parameters.location, in.parameters.locationProvider);
57 if (locations.size() > 1)
59 ARMARX_WARNING <<
"Multiple locations matched the requested location name '"
60 << in.parameters.location <<
"'. Using the first one.";
62 const auto positionIce = locations.front().framedPose.position;
69 using ParamsT = arondto::RotateTowardsParams;
74 parameters.navigatingSkillParams =
75 in.parameters.navigatingSkillParams;
76 parameters.targetPositionGlobal = position;
#define ARMARX_CHECK_NOT_EMPTY(c)
static Duration Hours(std::int64_t hours)
Constructs a duration in hours.
std::vector< core::Location > resolveLocation(const std::string &locationName, const std::optional< std::string > &provider)
static arondto::NavigatingSkillParams DefaultSkillDescription()
::armarx::skills::SkillDescription GetSkillDescription()
::armarx::skills::SimpleSpecializedSkill< Params > Base
RotateTowardsLocation(const Properties &properties, const Services &services)
arondto::RotateTowardsLocationParams ParamType
std::optional< TerminatedSkillStatusUpdate > callSubskill(const SkillID &skillId)
Call a subskill with the given ID and its default parameters.
static MainResult MakeSucceededResult(aron::data::DictPtr data=nullptr)
armarx::aron::data::DictPtr parameters
void throwIfSkillShouldTerminate(const std::string &abortedMessage="") const
static MainResult MakeFailedResult(aron::data::DictPtr data=nullptr)
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
const armarx::skills::SkillID RotateTowardsLocation
bool skillExecutionFailed(const std::optional< armarx::skills::TerminatedSkillStatusUpdate > &update)
This file offers overloads of toIce() and fromIce() functions for STL container types.
void fromIce(const std::map< IceKeyT, IceValueT > &iceMap, boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
This file is part of ArmarX.
This file is part of ArmarX.
armarx::skills::SkillID rotateTowards
armarx::navigation::memory::client::graph::Reader & locationReader
A result struct for th main method of a skill.