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/ObjectLearningByPushing.h>
33 #include <VisionX/interface/components/Calibration.h>
34 
35 
36 namespace visionx
37 {
38  /**
39  * @class OLPEvaluationPropertyDefinitions
40  * @brief
41  */
44  {
45  public:
48  {
49  defineOptionalProperty<std::string>("OLPName", "ObjectLearningByPushing", "Description");
50  defineOptionalProperty<std::string>("OLPObserverName", "ObjectLearningByPushingObserver", "Description");
51  defineOptionalProperty<std::string>("ImageProviderName", "ImageSequenceProvider", "Description");
52  defineOptionalProperty<std::string>("KinematicUnitName", "Armar3KinematicUnit", "Name of the kinematic unit that should be used");
53  defineOptionalProperty<bool>("TestRecognition", false, "Set true to evaluate the object recognition");
54  }
55  };
56 
57  /**
58  * @defgroup Component-OLPEvaluation OLPEvaluation
59  * @ingroup VisionX-Components
60  * A description of the component OLPEvaluation.
61  *
62  * @class OLPEvaluation
63  * @ingroup Component-OLPEvaluation
64  * @brief Brief description of class OLPEvaluation.
65  *
66  * Detailed description of class OLPEvaluation.
67  */
68  class OLPEvaluation :
69  virtual public armarx::Component
70  {
71  public:
72  /**
73  * @see armarx::ManagedIceObject::getDefaultName()
74  */
75  std::string getDefaultName() const override
76  {
77  return "OLPEvaluation";
78  }
79 
80  protected:
81  /**
82  * @see armarx::ManagedIceObject::onInitComponent()
83  */
84  void onInitComponent() override;
85 
86  /**
87  * @see armarx::ManagedIceObject::onConnectComponent()
88  */
89  void onConnectComponent() override;
90 
91  /**
92  * @see armarx::ManagedIceObject::onDisconnectComponent()
93  */
94  void onDisconnectComponent() override;
95 
96  /**
97  * @see armarx::ManagedIceObject::onExitComponent()
98  */
99  void onExitComponent() override;
100 
101  /**
102  * @see PropertyUser::createPropertyDefinitions()
103  */
105 
106  public:
107  ObjectLearningByPushingInterfacePrx olpProxy;
108  ObjectLearningByPushingListenerPrx olpObserverProxy;
109  ImageFileSequenceProviderInterfacePrx imageProviderProxy;
110  armarx::KinematicUnitInterfacePrx kinematicUnitProxy;
111  };
112 }
113 
visionx::OLPEvaluation::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: OLPEvaluation.cpp:260
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::OLPEvaluation::imageProviderProxy
ImageFileSequenceProviderInterfacePrx imageProviderProxy
Definition: OLPEvaluation.h:109
visionx::OLPEvaluation::onExitComponent
void onExitComponent() override
Definition: OLPEvaluation.cpp:254
visionx::OLPEvaluation::onDisconnectComponent
void onDisconnectComponent() override
Definition: OLPEvaluation.cpp:248
visionx::OLPEvaluation::kinematicUnitProxy
armarx::KinematicUnitInterfacePrx kinematicUnitProxy
Definition: OLPEvaluation.h:110
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
visionx::OLPEvaluationPropertyDefinitions
Definition: OLPEvaluation.h:42
visionx::OLPEvaluation::olpObserverProxy
ObjectLearningByPushingListenerPrx olpObserverProxy
Definition: OLPEvaluation.h:108
visionx::OLPEvaluationPropertyDefinitions::OLPEvaluationPropertyDefinitions
OLPEvaluationPropertyDefinitions(std::string prefix)
Definition: OLPEvaluation.h:46
visionx::OLPEvaluation::onConnectComponent
void onConnectComponent() override
Definition: OLPEvaluation.cpp:232
visionx::OLPEvaluation
Brief description of class OLPEvaluation.
Definition: OLPEvaluation.h:68
visionx::OLPEvaluation::olpProxy
ObjectLearningByPushingInterfacePrx olpProxy
Definition: OLPEvaluation.h:107
visionx::OLPEvaluation::getDefaultName
std::string getDefaultName() const override
Definition: OLPEvaluation.h:75
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::ComponentPropertyDefinitions::ComponentPropertyDefinitions
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition: Component.cpp:37
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
visionx::OLPEvaluation::onInitComponent
void onInitComponent() override
Definition: OLPEvaluation.cpp:35