Component.cpp
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
25
26#include "Impl.h"
28
30{
31
32 Component::Component() : pimpl(std::make_unique<Impl>())
33 {
34 }
35
36 RobotStatePredictionClientExample::~RobotStatePredictionClientExample() = default;
37
38 std::string
40 {
41 return "RobotStatePredictionClientExample";
42 }
43
46 {
49
51 pimpl->defineProperties(defs, "p.");
52
53 return defs;
54 }
55
56 void
60
61 void
63 {
64 pimpl->connect(memoryNameSystem(), arviz);
65 pimpl->start();
66
69 }
70
71 void
73 {
74 pimpl->stop();
75 }
76
77 void
81
82 void
84 {
85 using namespace armarx::RemoteGui::Client;
86
87 VBoxLayout root = {VSpacer()};
88 RemoteGui_createTab(getName(), root, &tab);
89 }
90
91 void
95
96} // namespace armarx::robot_state_prediction_client_example
Default component property definition container.
Definition Component.h:70
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition Component.cpp:90
std::string getName() const
Retrieve name of object.
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
#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...
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)