HandControlSkillProvider.cpp
Go to the documentation of this file.
2 
6 
7 //#include <RobotAPI/libraries/armem/client/MemoryNameSystem.h>
9 
11 {
13  {
15 
16  handControlSkillContext.defineProperties(defs, "handControlSkills.");
17 
18  return defs;
19  }
20 
22  {
23  return "HandControlSkillProvider";
24  }
25 
27  {
28  handControlSkillContext.onInit(*this);
29  }
30 
32  {
33  handControlSkillContext.onConnected(*this);
34 
35  // Add move skill
36  addSkill(std::make_unique<OpenHand>(handControlSkillContext));
37  addSkill(std::make_unique<CloseHand>(handControlSkillContext));
38 
39  }
40 
42  {
43 
44  }
45 
47  {}
48 }
client.h
armarx::skills::provider::HandControlSkillProvider::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: HandControlSkillProvider.cpp:31
String.h
armarx::skills::SkillContext::onInit
virtual void onInit(armarx::Component &parent)
Definition: SkillContext.h:21
armarx::skills::SkillContext::onConnected
virtual void onConnected(armarx::Component &parent)
Definition: SkillContext.h:22
NLohmannJSONConverter.h
armarx::skills::provider::HandControlSkillProvider::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: HandControlSkillProvider.cpp:46
armarx::skills::provider::HandControlSkillProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: HandControlSkillProvider.cpp:41
Object.h
armarx::skills::provider
Definition: BusyWaiting.cpp:6
armarx::skills::provider::HandControlSkillProvider::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: HandControlSkillProvider.cpp:26
armarx::skills::provider::HandControlSkillProvider::getDefaultName
std::string getDefaultName() const override
Definition: HandControlSkillProvider.cpp:21
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
armarx::skills::provider::HandControlSkillProvider::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: HandControlSkillProvider.cpp:12
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::HandControlSkillContext::defineProperties
void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix) final
Definition: HandControlSkill.h:50
HandControlSkillProvider.h