AffordanceUpdateListener.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 VisionX
17  * @author Peter Kaiser ( peter dot kaiser at kit dot edu )
18  * @date 2015
19  * @copyright http://www.gnu.org/licenses/gpl.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
26 #include <VisionX/interface/components/AffordanceUpdateListener.h>
27 
28 #include <mutex>
29 
30 namespace armarx
31 {
32  /**
33  * @class AffordanceUpdateListenerPropertyDefinitions
34  * @brief
35  */
38  {
39  public:
42  {
43  //defineRequiredProperty<std::string>("PropertyName", "Description");
44  //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
45  }
46  };
47 
48  /**
49  * @class AffordanceUpdateListener
50  * @ingroup VisionX-Components
51  * @brief A brief description
52  *
53  *
54  * Detailed Description
55  */
57  virtual public armarx::Component,
58  virtual public armarx::AffordanceUpdateListenerInterface
59  {
60  public:
61  /**
62  * @see armarx::ManagedIceObject::getDefaultName()
63  */
64  std::string getDefaultName() const override
65  {
66  return "AffordanceUpdateListener";
67  }
68 
69  protected:
70  /**
71  * @see armarx::ManagedIceObject::onInitComponent()
72  */
73  void onInitComponent() override;
74 
75  /**
76  * @see armarx::ManagedIceObject::onConnectComponent()
77  */
78  void onConnectComponent() override;
79 
80  /**
81  * @see armarx::ManagedIceObject::onDisconnectComponent()
82  */
83  void onDisconnectComponent() override;
84 
85  /**
86  * @see armarx::ManagedIceObject::onExitComponent()
87  */
88  void onExitComponent() override;
89 
90  /**
91  * @see PropertyUser::createPropertyDefinitions()
92  */
94 
95  void reportNewAffordances(const Ice::Current& c = Ice::emptyCurrent) override;
96  bool newAffordancesAvailable(const Ice::Current& c = Ice::emptyCurrent) override;
97 
98  protected:
99  std::mutex affordancesMutex;
100  bool news;
101  };
102 }
103 
armarx::AffordanceUpdateListener::onDisconnectComponent
void onDisconnectComponent() override
Definition: AffordanceUpdateListener.cpp:41
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::AffordanceUpdateListenerPropertyDefinitions::AffordanceUpdateListenerPropertyDefinitions
AffordanceUpdateListenerPropertyDefinitions(std::string prefix)
Definition: AffordanceUpdateListener.h:40
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
armarx::AffordanceUpdateListener::news
bool news
Definition: AffordanceUpdateListener.h:100
armarx::AffordanceUpdateListener::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: AffordanceUpdateListener.cpp:50
armarx::AffordanceUpdateListener::onInitComponent
void onInitComponent() override
Definition: AffordanceUpdateListener.cpp:29
armarx::AffordanceUpdateListener
A brief description.
Definition: AffordanceUpdateListener.h:56
armarx::AffordanceUpdateListener::reportNewAffordances
void reportNewAffordances(const Ice::Current &c=Ice::emptyCurrent) override
Definition: AffordanceUpdateListener.cpp:56
armarx::AffordanceUpdateListener::getDefaultName
std::string getDefaultName() const override
Definition: AffordanceUpdateListener.h:64
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::AffordanceUpdateListener::onConnectComponent
void onConnectComponent() override
Definition: AffordanceUpdateListener.cpp:35
armarx::AffordanceUpdateListener::onExitComponent
void onExitComponent() override
Definition: AffordanceUpdateListener.cpp:46
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::AffordanceUpdateListener::newAffordancesAvailable
bool newAffordancesAvailable(const Ice::Current &c=Ice::emptyCurrent) override
Definition: AffordanceUpdateListener.cpp:64
armarx::AffordanceUpdateListener::affordancesMutex
std::mutex affordancesMutex
Definition: AffordanceUpdateListener.h:99
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::AffordanceUpdateListenerPropertyDefinitions
Definition: AffordanceUpdateListener.h:36