TopicTimingServer.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::TopicTimingServer
17  * @author Fabian Paus ( fabian dot paus 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 <ArmarXCore/interface/observers/ObserverInterface.h>
30 #include <RobotAPI/interface/core/TopicTimingTest.h>
31 
32 
33 namespace armarx
34 {
35  /**
36  * @class TopicTimingServerPropertyDefinitions
37  * @brief
38  */
41  {
42  public:
44  };
45 
46 
47 
48  /**
49  * @defgroup Component-TopicTimingServer TopicTimingServer
50  * @ingroup RobotAPI-Components
51  * A description of the component TopicTimingServer.
52  *
53  * @class TopicTimingServer
54  * @ingroup Component-TopicTimingServer
55  * @brief Brief description of class TopicTimingServer.
56  *
57  * Detailed description of class TopicTimingServer.
58  */
60  virtual public armarx::Component
61  {
62  public:
63 
64  /// @see armarx::ManagedIceObject::getDefaultName()
65  virtual std::string getDefaultName() const override;
66 
67 
68  protected:
69 
70  /// @see armarx::ManagedIceObject::onInitComponent()
71  virtual void onInitComponent() override;
72 
73  /// @see armarx::ManagedIceObject::onConnectComponent()
74  virtual void onConnectComponent() override;
75 
76  /// @see armarx::ManagedIceObject::onDisconnectComponent()
77  virtual void onDisconnectComponent() override;
78 
79  /// @see armarx::ManagedIceObject::onExitComponent()
80  virtual void onExitComponent() override;
81 
82  /// @see PropertyUser::createPropertyDefinitions()
84 
85 
86  private:
87  void run();
88 
89  private:
91  int updatePeriodInMS = 10;
92 
94 
96 
97  IceUtil::Time lastSmallTime = IceUtil::Time::microSeconds(0);
98  };
99 }
armarx::TopicTimingServer::onDisconnectComponent
virtual void onDisconnectComponent() override
Definition: TopicTimingServer.cpp:72
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::TopicTimingServerPropertyDefinitions
Definition: TopicTimingServer.h:39
RunningTask.h
armarx::TopicTimingServer::onConnectComponent
virtual void onConnectComponent() override
Definition: TopicTimingServer.cpp:59
armarx::TopicTimingServer
Brief description of class TopicTimingServer.
Definition: TopicTimingServer.h:59
IceStorm::TopicPrx
::IceInternal::ProxyHandle< ::IceProxy::IceStorm::Topic > TopicPrx
Definition: IceManager.h:70
armarx::TopicTimingServer::onExitComponent
virtual void onExitComponent() override
Definition: TopicTimingServer.cpp:79
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
IceInternal::ProxyHandle<::IceProxy::armarx::DebugObserverInterface >
armarx::TopicTimingServer::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: TopicTimingServer.cpp:87
armarx::TopicTimingServer::onInitComponent
virtual void onInitComponent() override
Definition: TopicTimingServer.cpp:49
armarx::TopicTimingServerPropertyDefinitions::TopicTimingServerPropertyDefinitions
TopicTimingServerPropertyDefinitions(std::string prefix)
Definition: TopicTimingServer.cpp:32
armarx::TopicTimingServer::getDefaultName
virtual std::string getDefaultName() const override
Definition: TopicTimingServer.cpp:43
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28