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
29
31
34
35// For some reason, the generated main requires Impl to be complete ...
36#include "Impl.h"
37
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,
59 {
60 public:
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:
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
Provides a ready-to-use ArViz client arviz as member variable.
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
void onInitComponent() override
Pure virtual hook for the subclass.
Definition Component.cpp:57
void onDisconnectComponent() override
Hook for subclass.
Definition Component.cpp:72
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition Component.cpp:45
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition Component.cpp:62
robot_state_prediction_client_example::Impl Impl
Definition Component.h:61
void onExitComponent() override
Hook for subclass.
Definition Component.cpp:78
client::plugins::PluginUser ClientPluginUser
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.