PlatformControlSkillProvider.cpp
Go to the documentation of this file.
1
2
3
#include "
PlatformControlSkillProvider.h
"
4
5
#include <
RobotAPI/libraries/aron/core/type/variant/container/Object.h
>
6
#include <
RobotAPI/libraries/aron/core/type/variant/primitive/String.h
>
7
#include <
RobotAPI/libraries/aron/converter/json/NLohmannJSONConverter.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
PlatformControlSkillProvider::createPropertyDefinitions
()
15
{
16
armarx::PropertyDefinitionsPtr
defs =
new
ComponentPropertyDefinitions
(
getConfigIdentifier
());
17
18
platformControlSkillContext.
defineProperties
(defs,
"platformControlSkills."
);
19
20
return
defs;
21
}
22
23
std::string
PlatformControlSkillProvider::getDefaultName
()
const
24
{
25
return
"PlatformControlSkillProvider"
;
26
}
27
28
void
PlatformControlSkillProvider::onInitComponent
()
29
{
30
platformControlSkillContext.
onInit
(*
this
);
31
}
32
33
void
PlatformControlSkillProvider::onConnectComponent
()
34
{
35
platformControlSkillContext.
onConnected
(*
this
);
36
37
auto
& mns =
memoryNameSystem
();
38
39
// Add move skill
40
addSkill(std::make_unique<MovePlatformToLandmark>(mns,
arviz
, platformControlSkillContext));
41
addSkill(std::make_unique<MovePlatformToPose>(mns,
arviz
, platformControlSkillContext));
42
43
}
44
45
void
PlatformControlSkillProvider::onDisconnectComponent
()
46
{
47
48
}
49
50
void
PlatformControlSkillProvider::onExitComponent
()
51
{}
52
}
armarx::skills::provider::PlatformControlSkillProvider::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition:
PlatformControlSkillProvider.cpp:50
client.h
armarx::armem::client::plugins::PluginUser::memoryNameSystem
MemoryNameSystem & memoryNameSystem()
Definition:
PluginUser.cpp:22
String.h
armarx::skills::SkillContext::onInit
virtual void onInit(armarx::Component &parent)
Definition:
SkillContext.h:21
armarx::skills::provider::PlatformControlSkillProvider::getDefaultName
std::string getDefaultName() const override
Definition:
PlatformControlSkillProvider.cpp:23
armarx::skills::SkillContext::onConnected
virtual void onConnected(armarx::Component &parent)
Definition:
SkillContext.h:22
NLohmannJSONConverter.h
Object.h
armarx::skills::provider::PlatformControlSkillProvider::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition:
PlatformControlSkillProvider.cpp:28
armarx::skills::provider
Definition:
BusyWaiting.cpp:6
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::PlatformControlSkillProvider::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition:
PlatformControlSkillProvider.cpp:33
armarx::ArVizComponentPluginUser::arviz
armarx::viz::Client arviz
Definition:
ArVizComponentPlugin.h:43
IceUtil::Handle< class PropertyDefinitionContainer >
PlatformControlSkillProvider.h
armarx::skills::provider::PlatformControlSkillProvider::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
PlatformControlSkillProvider.cpp:14
armarx::skills::provider::PlatformControlSkillProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition:
PlatformControlSkillProvider.cpp:45
armarx::skills::PlatformControlSkillContext::defineProperties
void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix) final
Definition:
PlatformControlSkill.h:50
RobotSkillTemplates
components
PlatformControlSkillProvider
PlatformControlSkillProvider.cpp
Generated on Sat Oct 12 2024 09:14:13 for armarx_documentation by
1.8.17