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 
50  ARMARX_CHECK_NOT_NULL(pimpl);
51  pimpl->defineProperties(defs, "p.");
52 
53  return defs;
54  }
55 
56  void
58  {
59  }
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
79  {
80  }
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
93  {
94  }
95 
96 } // namespace armarx::robot_state_prediction_client_example
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::RemoteGui::Client::VBoxLayout
Definition: Widgets.h:167
armarx::armem::client::plugins::PluginUser::memoryNameSystem
MemoryNameSystem & memoryNameSystem()
Definition: PluginUser.cpp:22
ARMARX_CHECK_NOT_NULL
#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...
Definition: ExpressionException.h:206
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
armarx::RemoteGui::Client::VSpacer
Definition: Widgets.h:204
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::robot_state_prediction_client_example::Component::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: Component.cpp:62
armarx::robot_state_prediction_client_example::Component::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: Component.cpp:78
RobotStatePredictionClientExample.h
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_startRunningTask
void RemoteGui_startRunningTask()
Definition: LightweightRemoteGuiComponentPlugin.cpp:110
ExpressionException.h
armarx::robot_state_prediction_client_example
Definition: Component.cpp:29
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::robot_state_prediction_client_example::Impl
Definition: Impl.h:40
armarx::ArVizComponentPluginUser::arviz
armarx::viz::Client arviz
Definition: ArVizComponentPlugin.h:43
std
Definition: Application.h:66
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_createTab
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)
Definition: LightweightRemoteGuiComponentPlugin.cpp:95
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::robot_state_prediction_client_example::Component::RemoteGui_update
void RemoteGui_update() override
Definition: Component.cpp:92
armarx::ManagedIceObject::getName
std::string getName() const
Retrieve name of object.
Definition: ManagedIceObject.cpp:107
armarx::RemoteGui::Client
Definition: EigenWidgets.cpp:8