RelaxHand.cpp
Go to the documentation of this file.
1
#include "
RelaxHand.h
"
2
3
namespace
armarx::control::skills::skills
4
{
5
RelaxHand::RelaxHand
(
const
HandUnitServices
& srv) :
6
::
armarx
::
skills
::SimpleSpecializedSkill<
ParamType
>(GetSkillDescription()), srv_(srv)
7
{
8
}
9
10
armarx::skills::Skill::MainResult
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
skills
This file is part of ArmarX.
armarx::skills::SimpleSpecializedSkill< arondto::RelaxHandParams >::ParamType
arondto::RelaxHandParams ParamType
Definition:
SimpleSpecializedSkill.h:14
armarx::control::skills::HandUnitServices
Definition:
HandUnitServices.h:17
RelaxHand.h
armarx::control::skills::skills::RelaxHand::RelaxHand
RelaxHand(const HandUnitServices &)
Definition:
RelaxHand.cpp:5
armarx::skills::Skill::MakeSucceededResult
static MainResult MakeSucceededResult(aron::data::DictPtr data=nullptr)
Definition:
Skill.cpp:315
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition:
Skill.h:48
armarx::control::skills::HandUnitServices::getHandUnit
::armarx::HandUnitInterfacePrx & getHandUnit(const arondto::Hand hand)
Definition:
HandUnitServices.h:23
ARMARX_INFO
#define ARMARX_INFO
Definition:
Logging.h:174
armarx::skills::SimpleSpecializedSkill< arondto::RelaxHandParams >::main
Skill::MainResult main() final
Definition:
SimpleSpecializedSkill.h:71
armarx::control::skills::skills
Definition:
ExecuteTrajectory.cpp:18
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx
control
skills
skills
RelaxHand.cpp
Generated on Sat Oct 12 2024 09:14:13 for armarx_documentation by
1.8.17