FakeWorkingMemoryObjectLocalizer.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 ArmarXSimulation::ArmarXObjects::FakeWorkingMemoryObjectLocalizer
17  * @author Mirko Waechter ( mirko dot waechter at kit dot edu )
18  * @date 2016
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 
27 
28 #include <MemoryX/interface/workingmemory/WorkingMemoryUpdaterBase.h>
29 
30 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
31 
32 namespace armarx
33 {
34  /**
35  * @class FakeWorkingMemoryObjectLocalizerPropertyDefinitions
36  * @brief
37  */
40  {
41  public:
44  {
45  //defineRequiredProperty<std::string>("PropertyName", "Description");
46  defineOptionalProperty<std::string>("WorkingMemoryName", "WorkingMemory", "Name of the Working Memory to be used");
47  }
48  };
49 
50  /**
51  * @defgroup Component-FakeWorkingMemoryObjectLocalizer FakeWorkingMemoryObjectLocalizer
52  * @ingroup ArmarXSimulation-Components
53  * A description of the component FakeWorkingMemoryObjectLocalizer.
54  *
55  * @class FakeWorkingMemoryObjectLocalizer
56  * @ingroup Component-FakeWorkingMemoryObjectLocalizer
57  * @brief Brief description of class FakeWorkingMemoryObjectLocalizer.
58  *
59  * Detailed description of class FakeWorkingMemoryObjectLocalizer.
60  */
62  virtual public armarx::Component,
63  virtual public memoryx::ObjectLocalizerInterface
64  {
65  public:
66  /**
67  * @see armarx::ManagedIceObject::getDefaultName()
68  */
69  std::string getDefaultName() const override;
70 
71  protected:
72  /**
73  * @see armarx::ManagedIceObject::onInitComponent()
74  */
75  void onInitComponent() override;
76 
77  /**
78  * @see armarx::ManagedIceObject::onConnectComponent()
79  */
80  void onConnectComponent() override;
81 
82  /**
83  * @see armarx::ManagedIceObject::onDisconnectComponent()
84  */
85  void onDisconnectComponent() override;
86 
87  /**
88  * @see armarx::ManagedIceObject::onExitComponent()
89  */
90  void onExitComponent() override;
91 
92  /**
93  * @see PropertyUser::createPropertyDefinitions()
94  */
96 
97  // ObjectLocalizerInterface interface
98  public:
99  memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList& objectClassNames, const Ice::Current&) override;
100 
101  protected:
102  memoryx::WorkingMemoryInterfacePrx wm;
103  };
104 }
105 
armarx::FakeWorkingMemoryObjectLocalizer::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:60
armarx::FakeWorkingMemoryObjectLocalizerPropertyDefinitions::FakeWorkingMemoryObjectLocalizerPropertyDefinitions
FakeWorkingMemoryObjectLocalizerPropertyDefinitions(std::string prefix)
Definition: FakeWorkingMemoryObjectLocalizer.h:42
armarx::FakeWorkingMemoryObjectLocalizer::wm
memoryx::WorkingMemoryInterfacePrx wm
Definition: FakeWorkingMemoryObjectLocalizer.h:102
armarx::FakeWorkingMemoryObjectLocalizer::getDefaultName
std::string getDefaultName() const override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:32
armarx::FakeWorkingMemoryObjectLocalizerPropertyDefinitions
Definition: FakeWorkingMemoryObjectLocalizer.h:38
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::FakeWorkingMemoryObjectLocalizer::onConnectComponent
void onConnectComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:43
armarx::FakeWorkingMemoryObjectLocalizer
Brief description of class FakeWorkingMemoryObjectLocalizer.
Definition: FakeWorkingMemoryObjectLocalizer.h:61
armarx::FakeWorkingMemoryObjectLocalizer::onExitComponent
void onExitComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:55
armarx::FakeWorkingMemoryObjectLocalizer::onInitComponent
void onInitComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:37
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 >
armarx::FakeWorkingMemoryObjectLocalizer::localizeObjectClasses
memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList &objectClassNames, const Ice::Current &) override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:82
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::FakeWorkingMemoryObjectLocalizer::onDisconnectComponent
void onDisconnectComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:49