RelaxHand.cpp
Go to the documentation of this file.
1#include "RelaxHand.h"
2
4{
6 ::armarx::skills::SimpleSpecializedSkill<ParamType>(GetSkillDescription()), srv_(srv)
7 {
8 }
9
11 RelaxHand::main(const SpecializedMainInput& in)
12 {
13 HandUnitInterfacePrx& handUnit = srv_.getHandUnit(in.parameters.hand);
14
15 ARMARX_INFO << "Setting shape of hand '" << handUnit->getHandName() << "' to 'Relax'.";
16 handUnit->setShape("Relax");
17 return MakeSucceededResult();
18 }
19
20} // namespace armarx::control::skills::skills
RelaxHand(const HandUnitServices &)
Definition RelaxHand.cpp:5
::armarx::skills::SkillDescription GetSkillDescription()
Definition RelaxHand.h:18
static MainResult MakeSucceededResult(aron::data::DictPtr data=nullptr)
Definition Skill.cpp:413
virtual MainResult main()
Override this method with the actual implementation.
Definition Skill.cpp:542
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
This file offers overloads of toIce() and fromIce() functions for STL container types.
This file is part of ArmarX.
::armarx::HandUnitInterfacePrx & getHandUnit(const arondto::Hand hand)
A result struct for th main method of a skill.
Definition Skill.h:62