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 
35 namespace visionx
36 {
37  /**
38  * @class OLPEvaluationPropertyDefinitions
39  * @brief
40  */
42  {
43  public:
46  {
47  defineOptionalProperty<std::string>(
48  "OLPName", "ObjectLearningByPushing", "Description");
49  defineOptionalProperty<std::string>(
50  "OLPObserverName", "ObjectLearningByPushingObserver", "Description");
51  defineOptionalProperty<std::string>(
52  "ImageProviderName", "ImageSequenceProvider", "Description");
53  defineOptionalProperty<std::string>("KinematicUnitName",
54  "Armar3KinematicUnit",
55  "Name of the kinematic unit that should be used");
56  defineOptionalProperty<bool>(
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  std::string
79  getDefaultName() const override
80  {
81  return "OLPEvaluation";
82  }
83 
84  protected:
85  /**
86  * @see armarx::ManagedIceObject::onInitComponent()
87  */
88  void onInitComponent() override;
89 
90  /**
91  * @see armarx::ManagedIceObject::onConnectComponent()
92  */
93  void onConnectComponent() override;
94 
95  /**
96  * @see armarx::ManagedIceObject::onDisconnectComponent()
97  */
98  void onDisconnectComponent() override;
99 
100  /**
101  * @see armarx::ManagedIceObject::onExitComponent()
102  */
103  void onExitComponent() override;
104 
105  /**
106  * @see PropertyUser::createPropertyDefinitions()
107  */
109 
110  public:
111  ObjectLearningByPushingInterfacePrx olpProxy;
112  ObjectLearningByPushingListenerPrx olpObserverProxy;
113  ImageFileSequenceProviderInterfacePrx imageProviderProxy;
114  armarx::KinematicUnitInterfacePrx kinematicUnitProxy;
115  };
116 } // namespace visionx
visionx::OLPEvaluation::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: OLPEvaluation.cpp:279
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::OLPEvaluation::imageProviderProxy
ImageFileSequenceProviderInterfacePrx imageProviderProxy
Definition: OLPEvaluation.h:113
visionx::OLPEvaluation::onExitComponent
void onExitComponent() override
Definition: OLPEvaluation.cpp:274
visionx::OLPEvaluation::onDisconnectComponent
void onDisconnectComponent() override
Definition: OLPEvaluation.cpp:269
visionx::OLPEvaluation::kinematicUnitProxy
armarx::KinematicUnitInterfacePrx kinematicUnitProxy
Definition: OLPEvaluation.h:114
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:345
visionx::OLPEvaluationPropertyDefinitions
Definition: OLPEvaluation.h:41
visionx::OLPEvaluation::olpObserverProxy
ObjectLearningByPushingListenerPrx olpObserverProxy
Definition: OLPEvaluation.h:112
visionx::OLPEvaluationPropertyDefinitions::OLPEvaluationPropertyDefinitions
OLPEvaluationPropertyDefinitions(std::string prefix)
Definition: OLPEvaluation.h:44
visionx::OLPEvaluation::onConnectComponent
void onConnectComponent() override
Definition: OLPEvaluation.cpp:252
visionx::OLPEvaluation
Brief description of class OLPEvaluation.
Definition: OLPEvaluation.h:72
visionx::OLPEvaluation::olpProxy
ObjectLearningByPushingInterfacePrx olpProxy
Definition: OLPEvaluation.h:111
visionx::OLPEvaluation::getDefaultName
std::string getDefaultName() const override
Definition: OLPEvaluation.h:79
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::ComponentPropertyDefinitions::ComponentPropertyDefinitions
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition: Component.cpp:35
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
visionx::OLPEvaluation::onInitComponent
void onInitComponent() override
Definition: OLPEvaluation.cpp:35