Component.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @package RobotAPI::ArmarXObjects::RobotStatePredictionClientExample
17
* @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18
* @date 2022
19
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
24
#pragma once
25
26
#include <memory>
27
28
#include <
ArmarXCore/core/Component.h
>
29
30
#include <
ArmarXGui/libraries/ArmarXGuiComponentPlugins/LightweightRemoteGuiComponentPlugin.h
>
31
32
#include <
RobotAPI/libraries/RobotAPIComponentPlugins/ArVizComponentPlugin.h
>
33
#include <
RobotAPI/libraries/armem/client/plugins/PluginUser.h
>
34
35
// For some reason, the generated main requires Impl to be complete ...
36
#include "
Impl.h
"
37
38
namespace
armarx::robot_state_prediction_client_example
39
{
40
class
Impl;
41
42
/**
43
* @defgroup Component-ExampleClient ExampleClient
44
* @ingroup RobotAPI-Components
45
*
46
* An example for an ArMem Memory Client.
47
*
48
* @class ExampleClient
49
* @ingroup Component-ExampleClient
50
* @brief Brief description of class ExampleClient.
51
*
52
* Connects to the example memory, and commits and queries example data.
53
*/
54
class
Component
:
55
virtual
public
armarx::Component
,
56
virtual
public
armarx::LightweightRemoteGuiComponentPluginUser
,
57
virtual
public
armarx::ArVizComponentPluginUser
,
58
virtual
public
armarx::armem::ClientPluginUser
59
{
60
public
:
61
using
Impl
=
robot_state_prediction_client_example::Impl
;
62
63
Component
();
64
virtual
~Component
();
65
66
67
/// @see armarx::ManagedIceObject::getDefaultName()
68
std::string
getDefaultName
()
const override
;
69
70
71
// LightweightRemoteGuiComponentPluginUser interface
72
public
:
73
void
createRemoteGuiTab
();
74
void
RemoteGui_update
()
override
;
75
76
77
protected
:
78
armarx::PropertyDefinitionsPtr
createPropertyDefinitions
()
override
;
79
80
void
onInitComponent
()
override
;
81
void
onConnectComponent
()
override
;
82
void
onDisconnectComponent
()
override
;
83
void
onExitComponent
()
override
;
84
85
86
private
:
87
std::unique_ptr<Impl> pimpl =
nullptr
;
88
89
struct
RemoteGuiTab :
RemoteGui::Client::Tab
90
{
91
};
92
93
RemoteGuiTab tab;
94
};
95
}
// namespace armarx::robot_state_prediction_client_example
ArVizComponentPlugin.h
armarx::robot_state_prediction_client_example::Component::Component
Component()
Definition:
Component.cpp:32
armarx::robot_state_prediction_client_example::Component::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition:
Component.cpp:57
armarx::robot_state_prediction_client_example::Component
Definition:
Component.h:54
armarx::RemoteGui::Client::Tab
Definition:
Tab.h:15
armarx::robot_state_prediction_client_example::Component::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
Component.cpp:45
armarx::robot_state_prediction_client_example::Component::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition:
Component.cpp:72
LightweightRemoteGuiComponentPlugin.h
armarx::armem::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition:
PluginUser.h:27
armarx::ArVizComponentPluginUser
Provides a ready-to-use ArViz client arviz as member variable.
Definition:
ArVizComponentPlugin.h:35
armarx::robot_state_prediction_client_example::Component::createRemoteGuiTab
void createRemoteGuiTab()
Definition:
Component.cpp:83
armarx::robot_state_prediction_client_example::Component::getDefaultName
std::string getDefaultName() const override
Definition:
Component.cpp:39
Impl.h
armarx::LightweightRemoteGuiComponentPluginUser
Definition:
LightweightRemoteGuiComponentPlugin.h:72
armarx::robot_state_prediction_client_example::Component::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition:
Component.cpp:62
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition:
Component.h:91
armarx::robot_state_prediction_client_example::Component::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition:
Component.cpp:78
armarx::robot_state_prediction_client_example
Definition:
Component.cpp:29
armarx::robot_state_prediction_client_example::Component::~Component
virtual ~Component()
armarx::robot_state_prediction_client_example::Impl
Definition:
Impl.h:40
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::robot_state_prediction_client_example::Component::RemoteGui_update
void RemoteGui_update() override
Definition:
Component.cpp:92
PluginUser.h
RobotAPI
components
armem
client
RobotStatePredictionClientExample
Component.h
Generated on Sat Mar 29 2025 09:17:20 for armarx_documentation by
1.8.17