RetrieveHand.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include <armarx/control/retrieve_hand/aron/RetrieveHandParams.aron.generated.h>
6 
7 
9 {
10 
11  /**
12  * @class RetrieveHand
13  * @ingroup Library-retrieve_hand
14  * @brief Brief description of class retrieve_hand.
15  *
16  * Detailed description of class retrieve_hand.
17  */
18  class RetrieveHand : public ::armarx::skills::SimpleSpecializedSkill<RetrieveHandParams>
19  {
20  public:
22  static ::armarx::skills::SkillDescription GetSkillDescription();
23  struct Remote
24  {
25  // armarx::viz::Client arviz;
27 
29  };
30 
31  struct Properties
32  {
33  std::string robotName;
34  // std::string robotNodeSet;
35  // std::optional<armarx::ObjectID> objectId = std::nullopt;
36  };
37 
38  RetrieveHand(const Remote& r);
39 
40  struct Subskills
41  {
42  std::function<bool(const Eigen::Vector3f&)> lookAt;
43  std::function<bool()> openHand;
44  std::function<bool()> closeHand;
45  };
46 
47  public:
48  RetrieveHand();
49 
50  using Base::main;
51 
52  // SpecializedSkill interface
53  // Enable each function you want to override.
54  // ::armarx::skills::Skill::InitResult init(const SpecializedInitInput&) override;
55  ::armarx::skills::Skill::MainResult main(const SpecializedMainInput& in) override;
56 
57  void onStopRequested() override;
58 
59  private:
60  Remote remote;
61  Properties properties;
62  // ::armarx::skills::Skill::ExitResult exit(const SpecializedExitInput&) override;
63 
64  std::unique_ptr<armarx::control::retrieve_hand::core::RetrieveHand> impl;
65 
66  };
67 
68 }
armarx::control::retrieve_hand::skills
Definition: RetrieveHand.cpp:10
armarx::control::retrieve_hand::skills::RetrieveHand::Remote::robotUnit
armarx::RobotUnitInterfacePrx robotUnit
Definition: RetrieveHand.h:28
RetrieveHand.h
armarx::control::retrieve_hand::skills::RetrieveHand::Subskills::lookAt
std::function< bool(const Eigen::Vector3f &)> lookAt
Definition: RetrieveHand.h:42
SimpleSpecializedSkill.h
armarx::control::retrieve_hand::skills::RetrieveHand::GetSkillDescription
::armarx::skills::SkillDescription GetSkillDescription()
Definition: RetrieveHand.cpp:14
armarx::control::retrieve_hand::skills::RetrieveHand::Remote::memoryNameSystem
armarx::armem::client::MemoryNameSystem memoryNameSystem
Definition: RetrieveHand.h:26
armarx::control::retrieve_hand::skills::RetrieveHand::Remote
Definition: RetrieveHand.h:23
armarx::control::retrieve_hand::skills::RetrieveHand::Subskills::openHand
std::function< bool()> openHand
Definition: RetrieveHand.h:43
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
armarx::control::retrieve_hand::skills::RetrieveHand::RetrieveHand
RetrieveHand()
Definition: RetrieveHand.cpp:49
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:48
armarx::control::retrieve_hand::skills::RetrieveHand
Brief description of class retrieve_hand.
Definition: RetrieveHand.h:18
armarx::control::retrieve_hand::skills::RetrieveHand::Properties::robotName
std::string robotName
Definition: RetrieveHand.h:33
armarx::skills::SimpleSpecializedSkill< RetrieveHandParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::control::retrieve_hand::skills::RetrieveHand::Subskills
Definition: RetrieveHand.h:40
IceInternal::ProxyHandle<::IceProxy::armarx::RobotUnitInterface >
armarx::control::retrieve_hand::skills::RetrieveHand::Subskills::closeHand
std::function< bool()> closeHand
Definition: RetrieveHand.h:44
armarx::armem::client::MemoryNameSystem
The memory name system (MNS) client.
Definition: MemoryNameSystem.h:69
armarx::control::retrieve_hand::skills::RetrieveHand::onStopRequested
void onStopRequested() override
Definition: RetrieveHand.cpp:106
armarx::control::retrieve_hand::skills::RetrieveHand::Properties
Definition: RetrieveHand.h:31