ComponentPlugin.cpp
Go to the documentation of this file.
1#include "ComponentPlugin.h"
2
3#include <memory>
4
9
17
18// ComponentPlugin
19
21{
22
25 {
26 addPlugin(armemPlugin);
27 addPlugin(robotUnitPlugin);
28 }
29
31
32 void
34 {
35 armemPlugin->postCreatePropertyDefinitions(properties);
36 robotUnitPlugin->postCreatePropertyDefinitions(properties);
37 }
38
39 void
41 {
42 armemPlugin->preOnInitComponent();
43 robotUnitPlugin->preOnInitComponent();
44 }
45
46 void
48 {
49 armemPlugin->preOnConnectComponent();
50 robotUnitPlugin->preOnConnectComponent();
51
52 ARMARX_INFO << "Reader: connecting to memory '" << memory::constants::MemoryName << "'";
53 configReader = memory::config::Reader(armemPlugin->getMemoryNameSystemClient());
54
55 ARMARX_INFO << "Writer: connecting to memory '" << memory::constants::MemoryName << "'";
56 configWriter = memory::config::Writer(armemPlugin->getMemoryNameSystemClient());
57 }
58
59 // ComponentPluginUser
60
66
73
75
76} // namespace armarx::control::client
PluginT * addPlugin(const std::string prefix="", ParamsT &&... params)
const std::string & prefix() const
The ManagedIceObject is the base class for all ArmarX objects.
PluginT * addPlugin(const std::string prefix="", ParamsT &&... params)
ComponentPlugin(ManagedIceObject &parent, const std::string &prefix)
void postCreatePropertyDefinitions(armarx::PropertyDefinitionsPtr &properties) override
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
This file is part of ArmarX.
constexpr const char * MemoryName
Definition constants.h:29
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
#define ARMARX_TRACE
Definition trace.h:77