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