HandControlSkillProvider.cpp
Go to the documentation of this file.
1
#include "
HandControlSkillProvider.h
"
2
3
#include <
RobotAPI/libraries/aron/converter/json/NLohmannJSONConverter.h
>
4
#include <
RobotAPI/libraries/aron/core/type/variant/container/Object.h
>
5
#include <
RobotAPI/libraries/aron/core/type/variant/primitive/String.h
>
6
7
//#include <RobotAPI/libraries/armem/client/MemoryNameSystem.h>
8
#include <
RobotAPI/libraries/armem/client.h
>
9
10
namespace
armarx::skills::provider
11
{
12
armarx::PropertyDefinitionsPtr
13
HandControlSkillProvider::createPropertyDefinitions
()
14
{
15
armarx::PropertyDefinitionsPtr
defs =
16
new
ComponentPropertyDefinitions
(
getConfigIdentifier
());
17
18
handControlSkillContext.
defineProperties
(defs,
"handControlSkills."
);
19
20
return
defs;
21
}
22
23
std::string
24
HandControlSkillProvider::getDefaultName
()
const
25
{
26
return
"HandControlSkillProvider"
;
27
}
28
29
void
30
HandControlSkillProvider::onInitComponent
()
31
{
32
handControlSkillContext.
onInit
(*
this
);
33
}
34
35
void
36
HandControlSkillProvider::onConnectComponent
()
37
{
38
handControlSkillContext.
onConnected
(*
this
);
39
40
// Add move skill
41
addSkill(std::make_unique<OpenHand>(handControlSkillContext));
42
addSkill(std::make_unique<CloseHand>(handControlSkillContext));
43
}
44
45
void
46
HandControlSkillProvider::onDisconnectComponent
()
47
{
48
}
49
50
void
51
HandControlSkillProvider::onExitComponent
()
52
{
53
}
54
}
// namespace armarx::skills::provider
client.h
armarx::skills::provider::HandControlSkillProvider::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition:
HandControlSkillProvider.cpp:36
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:51
armarx::skills::provider::HandControlSkillProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition:
HandControlSkillProvider.cpp:46
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:30
armarx::skills::provider::HandControlSkillProvider::getDefaultName
std::string getDefaultName() const override
Definition:
HandControlSkillProvider.cpp:24
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition:
Component.cpp:79
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition:
Component.h:69
armarx::skills::provider::HandControlSkillProvider::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
HandControlSkillProvider.cpp:13
IceUtil::Handle
Definition:
forward_declarations.h:30
armarx::skills::HandControlSkillContext::defineProperties
void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix) final
Definition:
HandControlSkill.h:52
HandControlSkillProvider.h
RobotSkillTemplates
components
HandControlSkillProvider
HandControlSkillProvider.cpp
Generated on Sat Mar 29 2025 09:17:33 for armarx_documentation by
1.8.17