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/components/WorkingMemoryInterface.h>
29 #include <MemoryX/interface/workingmemory/WorkingMemoryUpdaterBase.h>
30 
31 namespace armarx
32 {
33  /**
34  * @class FakeWorkingMemoryObjectLocalizerPropertyDefinitions
35  * @brief
36  */
39  {
40  public:
43  {
44  //defineRequiredProperty<std::string>("PropertyName", "Description");
45  defineOptionalProperty<std::string>(
46  "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
100  localizeObjectClasses(const memoryx::ObjectClassNameList& objectClassNames,
101  const Ice::Current&) override;
102 
103  protected:
104  memoryx::WorkingMemoryInterfacePrx wm;
105  };
106 } // namespace armarx
armarx::FakeWorkingMemoryObjectLocalizer::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:61
armarx::FakeWorkingMemoryObjectLocalizerPropertyDefinitions::FakeWorkingMemoryObjectLocalizerPropertyDefinitions
FakeWorkingMemoryObjectLocalizerPropertyDefinitions(std::string prefix)
Definition: FakeWorkingMemoryObjectLocalizer.h:41
armarx::FakeWorkingMemoryObjectLocalizer::wm
memoryx::WorkingMemoryInterfacePrx wm
Definition: FakeWorkingMemoryObjectLocalizer.h:104
armarx::FakeWorkingMemoryObjectLocalizer::getDefaultName
std::string getDefaultName() const override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:33
armarx::FakeWorkingMemoryObjectLocalizerPropertyDefinitions
Definition: FakeWorkingMemoryObjectLocalizer.h:37
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:345
armarx::FakeWorkingMemoryObjectLocalizer::onConnectComponent
void onConnectComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:45
armarx::FakeWorkingMemoryObjectLocalizer
Brief description of class FakeWorkingMemoryObjectLocalizer.
Definition: FakeWorkingMemoryObjectLocalizer.h:61
armarx::FakeWorkingMemoryObjectLocalizer::onExitComponent
void onExitComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:56
armarx::FakeWorkingMemoryObjectLocalizer::onInitComponent
void onInitComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:39
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:91
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:69
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::FakeWorkingMemoryObjectLocalizer::localizeObjectClasses
memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList &objectClassNames, const Ice::Current &) override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:86
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::FakeWorkingMemoryObjectLocalizer::onDisconnectComponent
void onDisconnectComponent() override
Definition: FakeWorkingMemoryObjectLocalizer.cpp:51