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
31namespace armarx
32{
33 /**
34 * @class FakeWorkingMemoryObjectLocalizerPropertyDefinitions
35 * @brief
36 */
39 {
40 public:
43 {
44 //defineRequiredProperty<std::string>("PropertyName", "Description");
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
Default component property definition container.
Definition Component.h:70
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition Component.cpp:46
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
Brief description of class FakeWorkingMemoryObjectLocalizer.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList &objectClassNames, const Ice::Current &) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.