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 
25 #include <mutex>
26 
28 
29 #include <VisionX/interface/components/AffordanceUpdateListener.h>
30 
31 namespace armarx
32 {
33  /**
34  * @class AffordanceUpdateListenerPropertyDefinitions
35  * @brief
36  */
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
65  getDefaultName() const override
66  {
67  return "AffordanceUpdateListener";
68  }
69 
70  protected:
71  /**
72  * @see armarx::ManagedIceObject::onInitComponent()
73  */
74  void onInitComponent() override;
75 
76  /**
77  * @see armarx::ManagedIceObject::onConnectComponent()
78  */
79  void onConnectComponent() override;
80 
81  /**
82  * @see armarx::ManagedIceObject::onDisconnectComponent()
83  */
84  void onDisconnectComponent() override;
85 
86  /**
87  * @see armarx::ManagedIceObject::onExitComponent()
88  */
89  void onExitComponent() override;
90 
91  /**
92  * @see PropertyUser::createPropertyDefinitions()
93  */
95 
96  void reportNewAffordances(const Ice::Current& c = Ice::emptyCurrent) override;
97  bool newAffordancesAvailable(const Ice::Current& c = Ice::emptyCurrent) override;
98 
99  protected:
100  std::mutex affordancesMutex;
101  bool news;
102  };
103 } // namespace armarx
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:345
armarx::AffordanceUpdateListenerPropertyDefinitions::AffordanceUpdateListenerPropertyDefinitions
AffordanceUpdateListenerPropertyDefinitions(std::string prefix)
Definition: AffordanceUpdateListener.h:40
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
armarx::AffordanceUpdateListener::news
bool news
Definition: AffordanceUpdateListener.h:101
armarx::AffordanceUpdateListener::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: AffordanceUpdateListener.cpp:51
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:58
armarx::AffordanceUpdateListener::getDefaultName
std::string getDefaultName() const override
Definition: AffordanceUpdateListener.h:65
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:91
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:69
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::AffordanceUpdateListener::newAffordancesAvailable
bool newAffordancesAvailable(const Ice::Current &c=Ice::emptyCurrent) override
Definition: AffordanceUpdateListener.cpp:67
armarx::AffordanceUpdateListener::affordancesMutex
std::mutex affordancesMutex
Definition: AffordanceUpdateListener.h:100
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::AffordanceUpdateListenerPropertyDefinitions
Definition: AffordanceUpdateListener.h:37