RelaxHand.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <armarx/control/skills/aron/RelaxHandParams.aron.generated.h>
7 
8 #include "HandUnitServices.h"
9 
11 {
12 
13  class RelaxHand : public ::armarx::skills::SimpleSpecializedSkill<arondto::RelaxHandParams>
14  {
15 
16  public:
17  static ::armarx::skills::SkillDescription
19  {
20  return ::armarx::skills::SkillDescription{
22  .description = "Relaxes hand joints",
23  .timeout = ::armarx::Duration::Seconds(1),
24  .parametersType = ParamType::ToAronType()};
25  }
26 
28 
29  private:
30  using Base::main;
31  ::armarx::skills::Skill::MainResult main(const SpecializedMainInput& in) override;
32 
33  private:
34  HandUnitServices srv_;
35  };
36 
37 } // namespace armarx::control::skills::skills
armarx::control::skills::HandUnitServices
Definition: HandUnitServices.h:17
armarx::skills::SkillID::skillName
std::string skillName
Definition: SkillID.h:60
armarx::control::skills::skills::RelaxHand
Definition: RelaxHand.h:13
HandUnitServices.h
SimpleSpecializedSkill.h
constants.h
armarx::core::time::Duration::Seconds
static Duration Seconds(std::int64_t seconds)
Constructs a duration in seconds.
Definition: Duration.cpp:83
armarx::control::skills::skills::RelaxHand::GetSkillDescription
::armarx::skills::SkillDescription GetSkillDescription()
Definition: RelaxHand.h:18
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:20
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
armarx::control::skills::skills::RelaxHand::RelaxHand
RelaxHand(const HandUnitServices &)
Definition: RelaxHand.cpp:5
armarx::control::skills::constants::RELAX_HAND_SKILL_NAME
std::string RELAX_HAND_SKILL_NAME
Definition: constants.cpp:11
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:48
armarx::skills::SimpleSpecializedSkill< arondto::RelaxHandParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::control::skills::skills
Definition: ExecuteTrajectory.cpp:18
armarx::skills::Skill::main
virtual MainResult main()
Override this method with the actual implementation. The callback is for status updates to the callin...
Definition: Skill.cpp:444