BringObjectSkillProvider.cpp
Go to the documentation of this file.
1
#include "
BringObjectSkillProvider.h
"
2
3
namespace
armarx::skills::provider
4
{
5
armarx::PropertyDefinitionsPtr
BringObjectSkillProvider::createPropertyDefinitions
()
6
{
7
armarx::PropertyDefinitionsPtr
defs =
new
ComponentPropertyDefinitions
(
getConfigIdentifier
());
8
9
bringObjectSkillContext.
defineProperties
(defs,
"bringObject."
);
10
11
return
defs;
12
}
13
14
std::string
BringObjectSkillProvider::getDefaultName
()
const
15
{
16
return
"BringObjectSkillProvider"
;
17
}
18
19
void
BringObjectSkillProvider::onInitComponent
()
20
{
21
bringObjectSkillContext.
onInit
(*
this
);
22
}
23
24
void
BringObjectSkillProvider::onConnectComponent
()
25
{
26
bringObjectSkillContext.
onConnected
(*
this
);
27
28
// Add move skill
29
addSkill(std::make_unique<BringObjectToLocation>(bringObjectSkillContext));
30
//addSkill(std::make_unique<BringObjectToHuman>(mns, arviz, graspObjectSkillContext));
31
}
32
33
void
BringObjectSkillProvider::onDisconnectComponent
()
34
{
35
36
}
37
38
void
BringObjectSkillProvider::onExitComponent
()
39
{}
40
}
armarx::skills::provider::BringObjectSkillProvider::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition:
BringObjectSkillProvider.cpp:24
armarx::skills::SkillContext::onConnected
virtual void onConnected(armarx::Component &parent)
Definition:
SkillContext.h:22
armarx::skills::BringObjectSkillContext::onInit
virtual void onInit(armarx::Component &parent) final
Definition:
BringObjectSkill.h:55
armarx::skills::provider::BringObjectSkillProvider::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition:
BringObjectSkillProvider.cpp:19
BringObjectSkillProvider.h
armarx::skills::provider::BringObjectSkillProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition:
BringObjectSkillProvider.cpp:33
armarx::skills::provider
Definition:
BusyWaiting.cpp:6
armarx::skills::provider::BringObjectSkillProvider::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
BringObjectSkillProvider.cpp:5
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
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::provider::BringObjectSkillProvider::getDefaultName
std::string getDefaultName() const override
Definition:
BringObjectSkillProvider.cpp:14
armarx::skills::provider::BringObjectSkillProvider::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition:
BringObjectSkillProvider.cpp:38
armarx::skills::BringObjectSkillContext::defineProperties
void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix) final
Definition:
BringObjectSkill.h:49
RobotSkillTemplates
components
BringObjectSkillProvider
BringObjectSkillProvider.cpp
Generated on Sat Oct 12 2024 09:14:13 for armarx_documentation by
1.8.17