OLPEvaluation.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package VisionX::ArmarXObjects::OLPEvaluation
19 * @author David ( david dot schiebener at kit dot edu )
20 * @date 2015
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24
25#pragma once
26
27
29
30#include <RobotAPI/interface/units/KinematicUnitInterface.h>
31
32#include <VisionX/interface/components/Calibration.h>
33#include <VisionX/interface/components/ObjectLearningByPushing.h>
34
35namespace visionx
36{
37 /**
38 * @class OLPEvaluationPropertyDefinitions
39 * @brief
40 */
42 {
43 public:
46 {
48 "OLPName", "ObjectLearningByPushing", "Description");
50 "OLPObserverName", "ObjectLearningByPushingObserver", "Description");
52 "ImageProviderName", "ImageSequenceProvider", "Description");
53 defineOptionalProperty<std::string>("KinematicUnitName",
54 "Armar3KinematicUnit",
55 "Name of the kinematic unit that should be used");
57 "TestRecognition", false, "Set true to evaluate the object recognition");
58 }
59 };
60
61 /**
62 * @defgroup Component-OLPEvaluation OLPEvaluation
63 * @ingroup VisionX-Components
64 * A description of the component OLPEvaluation.
65 *
66 * @class OLPEvaluation
67 * @ingroup Component-OLPEvaluation
68 * @brief Brief description of class OLPEvaluation.
69 *
70 * Detailed description of class OLPEvaluation.
71 */
72 class OLPEvaluation : virtual public armarx::Component
73 {
74 public:
75 /**
76 * @see armarx::ManagedIceObject::getDefaultName()
77 */
78 static std::string
80 {
81 return "OLPEvaluation";
82 }
83
84 std::string
85 getDefaultName() const override
86 {
87 return GetDefaultName();
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 public:
117 ObjectLearningByPushingInterfacePrx olpProxy;
118 ObjectLearningByPushingListenerPrx olpObserverProxy;
119 ImageFileSequenceProviderInterfacePrx imageProviderProxy;
120 armarx::KinematicUnitInterfacePrx kinematicUnitProxy;
121 };
122} // namespace visionx
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
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)
OLPEvaluationPropertyDefinitions(std::string prefix)
Brief description of class OLPEvaluation.
void onInitComponent() override
ObjectLearningByPushingInterfacePrx olpProxy
ImageFileSequenceProviderInterfacePrx imageProviderProxy
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
static std::string GetDefaultName()
ObjectLearningByPushingListenerPrx olpObserverProxy
void onExitComponent() override
std::string getDefaultName() const override
Retrieve default name of component.
armarx::KinematicUnitInterfacePrx kinematicUnitProxy
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
ArmarX headers.