DummyObjectLocalizer.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 MemoryX::ArmarXObjects::DummyObjectLocalizer
17 * @author Fabian Paus ( fabian dot paus at kit dot edu )
18 * @date 2018
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
26
27#include <RobotAPI/interface/core/PoseBase.h>
28#include <RobotAPI/interface/core/RobotState.h>
30
31#include <MemoryX/interface/workingmemory/WorkingMemoryUpdaterBase.h>
32
33namespace armarx
34{
35
37 {
38 std::string name;
40 };
41
42 /**
43 * @class DummyObjectLocalizerPropertyDefinitions
44 * @brief
45 */
47 {
48 public:
51 {
52 //defineRequiredProperty<std::string>("PropertyName", "Description");
54 "MemoryX/DummyObjectLocations.json",
55 "A file containing framed poses for each object "
56 "which should be reported by this localizer.");
57
59 "RobotStateComponentName",
60 "RobotStateComponent",
61 "Name of the robot state component that should be used");
62 }
63 };
64
65 /**
66 * @defgroup Component-DummyObjectLocalizer DummyObjectLocalizer
67 * @ingroup MemoryX-Components
68 * A description of the component DummyObjectLocalizer.
69 *
70 * @class DummyObjectLocalizer
71 * @ingroup Component-DummyObjectLocalizer
72 * @brief Brief description of class DummyObjectLocalizer.
73 *
74 * Detailed description of class DummyObjectLocalizer.
75 */
77 virtual public memoryx::ObjectLocalizerInterface,
78 virtual public armarx::Component
79 {
80 public:
81 /**
82 * @see armarx::ManagedIceObject::getDefaultName()
83 */
84 std::string
85 getDefaultName() const override
86 {
87 return "DummyObjectLocalizer";
88 }
89
90 protected:
91 /**
92 * @see armarx::ManagedIceObject::onInitComponent()
93 */
94 void onInitComponent() override;
95
96 /**
97 * @see armarx::ManagedIceObject::onConnectComponent()
98 */
99 void onConnectComponent() override;
100
101 /**
102 * @see armarx::ManagedIceObject::onDisconnectComponent()
103 */
104 void onDisconnectComponent() override;
105
106 /**
107 * @see armarx::ManagedIceObject::onExitComponent()
108 */
109 void onExitComponent() override;
110
111 /**
112 * @see PropertyUser::createPropertyDefinitions()
113 */
115
116 // ObjectLocalizerInterface interface
117 memoryx::ObjectLocalizationResultList
118 localizeObjectClasses(const memoryx::ObjectClassNameList& classes,
119 const Ice::Current&) override;
120
121 private:
122 std::vector<DummyObject> dummyObjects;
123
124
125 armarx::RobotStateComponentInterfacePrx robotStateComponent;
126 };
127} // 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 DummyObjectLocalizer.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList &classes, const Ice::Current &) override
std::string getDefaultName() const 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.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx
IceInternal::Handle< FramedPose > FramedPosePtr
Definition FramedPose.h:272