StatechartExecutorExample.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 ArmarXGui::ArmarXObjects::StatechartExecutorExample
17  * @author Stefan Reither ( stefan dot reither at kit dot edu )
18  * @date 2019
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 
27 
29 #include <ArmarXGui/interface/RemoteGuiInterface.h>
31 
32 #include <ArmarXCore/interface/components/SimpleStatechartExecutorInterface.h>
33 
34 
35 namespace armarx
36 {
37  /**
38  * @class StatechartExecutorExamplePropertyDefinitions
39  * @brief
40  */
43  {
44  public:
46  };
47 
48 
49 
50  /**
51  * @defgroup Component-StatechartExecutorExample StatechartExecutorExample
52  * @ingroup ArmarXGui-Components
53  * A description of the component StatechartExecutorExample.
54  *
55  * @class StatechartExecutorExample
56  * @ingroup Component-StatechartExecutorExample
57  * @brief Brief description of class StatechartExecutorExample.
58  *
59  * Detailed description of class StatechartExecutorExample.
60  */
62  virtual public armarx::Component
63  {
64  public:
65 
66  /// @see armarx::ManagedIceObject::getDefaultName()
67  virtual std::string getDefaultName() const override;
68 
69 
70  protected:
71 
72  /// @see armarx::ManagedIceObject::onInitComponent()
73  virtual void onInitComponent() override;
74 
75  /// @see armarx::ManagedIceObject::onConnectComponent()
76  virtual void onConnectComponent() override;
77 
78  /// @see armarx::ManagedIceObject::onDisconnectComponent()
79  virtual void onDisconnectComponent() override;
80 
81  /// @see armarx::ManagedIceObject::onExitComponent()
82  virtual void onExitComponent() override;
83 
84  /// @see PropertyUser::createPropertyDefinitions()
86 
87 
88  private:
89 
90  SimpleStatechartExecutorInterfacePrx _statechartExecutor;
91 
92  void setupRemoteGuiWidget();
93  RemoteGuiInterfacePrx _remoteGuiPrx;
94  RemoteGui::TabProxy _remoteGuiTab;
95  std::string _tabName;
96  void runRemoteGui();
98 
99  };
100 }
armarx::StatechartExecutorExample::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: StatechartExecutorExample.cpp:95
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::StatechartExecutorExample
Brief description of class StatechartExecutorExample.
Definition: StatechartExecutorExample.h:61
RunningTask.h
armarx::StatechartExecutorExample::onConnectComponent
virtual void onConnectComponent() override
Definition: StatechartExecutorExample.cpp:69
armarx::RemoteGui::TabProxy
Definition: WidgetProxy.h:17
armarx::StatechartExecutorExample::onExitComponent
virtual void onExitComponent() override
Definition: StatechartExecutorExample.cpp:89
WidgetProxy.h
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::StatechartExecutorExamplePropertyDefinitions::StatechartExecutorExamplePropertyDefinitions
StatechartExecutorExamplePropertyDefinitions(std::string prefix)
Definition: StatechartExecutorExample.cpp:49
armarx::StatechartExecutorExamplePropertyDefinitions
Definition: StatechartExecutorExample.h:41
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::StatechartExecutorExample::onDisconnectComponent
virtual void onDisconnectComponent() override
Definition: StatechartExecutorExample.cpp:83
armarx::StatechartExecutorExample::onInitComponent
virtual void onInitComponent() override
Definition: StatechartExecutorExample.cpp:62
armarx::StatechartExecutorExample::getDefaultName
virtual std::string getDefaultName() const override
Definition: StatechartExecutorExample.cpp:56
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28