13#include <armarx/navigation/skills/aron/NavigateToNamedLocation.aron.generated.h>
19 armarx::skills::SkillDescription
27 defaultParameters.inFrontOfChargingStationLocationName =
29 defaultParameters.chargingLocationName =
30 chargingStationObjectID.getClassID().str() +
"/charging";
33 description <<
"Go to the charging station and initiate charging.";
35 description <<
"Optionally the names of the charging-station locations can be changed "
36 "through the skill's parameters.";
39 <<
" - **inFrontOfChargingStationLocationName**: Name of the location the robot will "
40 "first navigate to in order to initiate the movement towards the charging "
43 <<
" - **chargingLocationName**: Name of the location where the robot should charge. "
44 "This is just a theoretical location, since the robot will probably have to find a "
45 "very precise placement where the wireless charging will initiate.\n";
50 .rootProfileDefaults = defaultParameters.toAron(),
52 .parametersType = Params::ToAronType(),
69 NavigateToChargingStation::main(
const Base::SpecializedMainInput& in)
76 using ParamsT = arondto::NavigateToNamedLocationParams;
80 [&in](ParamsT& namedLocationParams)
noexcept
82 namedLocationParams.locationName =
83 in.parameters.inFrontOfChargingStationLocationName;
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
ObjectID getClassID() const
Return just the class ID without an intance name.
std::string str() const
Return "dataset/className" or "dataset/className/instanceName".
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
::armarx::skills::SkillDescription GetSkillDescription()
NavigateToChargingStation(const Properties &properties)
::armarx::skills::SimpleSpecializedSkill< Params > Base
Resolve a named location and navigate to it.
arondto::NavigateToChargingStationParams 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)
SkillDescription description
void throwIfSkillShouldTerminate(const std::string &abortedMessage="") const
static MainResult MakeFailedResult(aron::data::DictPtr data=nullptr)
const armarx::skills::SkillID NavigateToChargingStation
bool skillExecutionFailed(const std::optional< armarx::skills::TerminatedSkillStatusUpdate > &update)
This file offers overloads of toIce() and fromIce() functions for STL container types.
This file is part of ArmarX.
This file is part of ArmarX.
armarx::skills::SkillID navigateToNamedLocation
A result struct for th main method of a skill.