PlatformControlSkillProvider.cpp
Go to the documentation of this file.
1
2
3
#include "
PlatformControlSkillProvider.h
"
4
5
#include <
RobotAPI/libraries/aron/converter/json/NLohmannJSONConverter.h
>
6
#include <
RobotAPI/libraries/aron/core/type/variant/container/Object.h
>
7
#include <
RobotAPI/libraries/aron/core/type/variant/primitive/String.h
>
8
9
//#include <RobotAPI/libraries/armem/client/MemoryNameSystem.h>
10
#include <
RobotAPI/libraries/armem/client.h
>
11
12
namespace
armarx::skills::provider
13
{
14
armarx::PropertyDefinitionsPtr
15
PlatformControlSkillProvider::createPropertyDefinitions
()
16
{
17
armarx::PropertyDefinitionsPtr
defs =
18
new
ComponentPropertyDefinitions
(
getConfigIdentifier
());
19
20
platformControlSkillContext.defineProperties(defs,
"platformControlSkills."
);
21
22
return
defs;
23
}
24
25
std::string
26
PlatformControlSkillProvider::getDefaultName
()
const
27
{
28
return
"PlatformControlSkillProvider"
;
29
}
30
31
void
32
PlatformControlSkillProvider::onInitComponent
()
33
{
34
platformControlSkillContext.onInit(*
this
);
35
}
36
37
void
38
PlatformControlSkillProvider::onConnectComponent
()
39
{
40
platformControlSkillContext.onConnected(*
this
);
41
42
auto
& mns =
memoryNameSystem
();
43
44
// Add move skill
45
addSkill(std::make_unique<MovePlatformToLandmark>(mns,
arviz
, platformControlSkillContext));
46
addSkill(std::make_unique<MovePlatformToPose>(mns,
arviz
, platformControlSkillContext));
47
}
48
49
void
50
PlatformControlSkillProvider::onDisconnectComponent
()
51
{
52
}
53
54
void
55
PlatformControlSkillProvider::onExitComponent
()
56
{
57
}
58
}
// namespace armarx::skills::provider
NLohmannJSONConverter.h
PlatformControlSkillProvider.h
client.h
armarx::ArVizComponentPluginUser::arviz
armarx::viz::Client arviz
Definition
ArVizComponentPlugin.h:42
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition
Component.h:70
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition
Component.cpp:90
armarx::armem::client::plugins::PluginUser::memoryNameSystem
MemoryNameSystem & memoryNameSystem()
Definition
PluginUser.cpp:20
armarx::skills::provider::PlatformControlSkillProvider::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition
PlatformControlSkillProvider.cpp:32
armarx::skills::provider::PlatformControlSkillProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition
PlatformControlSkillProvider.cpp:50
armarx::skills::provider::PlatformControlSkillProvider::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition
PlatformControlSkillProvider.cpp:15
armarx::skills::provider::PlatformControlSkillProvider::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition
PlatformControlSkillProvider.cpp:38
armarx::skills::provider::PlatformControlSkillProvider::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition
PlatformControlSkillProvider.cpp:55
armarx::skills::provider::PlatformControlSkillProvider::getDefaultName
std::string getDefaultName() const override
Definition
PlatformControlSkillProvider.cpp:26
Object.h
String.h
armarx::skills::provider
Definition
BusyWaiting.cpp:7
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition
forward_declarations.h:35
RobotSkillTemplates
components
PlatformControlSkillProvider
PlatformControlSkillProvider.cpp
Generated by
1.13.2