DummyArMarkerLocalizer.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 VisionX::ArmarXObjects::DummyArMarkerLocalizer
17  * @author Simon Ottenhaus ( simon dot ottenhaus 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 
25 
26 #include <mutex>
27 
28 #include <VirtualRobot/math/AbstractFunctionR1R6.h>
29 #include <VirtualRobot/math/MathForwardDefinitions.h>
30 
33 
34 #include <VisionX/interface/components/ArMarkerLocalizerInterface.h>
35 
36 namespace visionx
37 {
38  /**
39  * @class DummyArMarkerLocalizerPropertyDefinitions
40  * @brief
41  */
43  {
44  public:
47  {
48  //defineRequiredProperty<std::string>("PropertyName", "Description");
49  //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
50  defineOptionalProperty<std::string>("AgentName", "Armar6", "Agent name");
51  defineOptionalProperty<std::string>("FrameName", "root", "Frame name");
52  }
53  };
54 
55  /**
56  * @defgroup Component-DummyArMarkerLocalizer DummyArMarkerLocalizer
57  * @ingroup VisionX-Components
58  * A description of the component DummyArMarkerLocalizer.
59  *
60  * @class DummyArMarkerLocalizer
61  * @ingroup Component-DummyArMarkerLocalizer
62  * @brief Brief description of class DummyArMarkerLocalizer.
63  *
64  * Detailed description of class DummyArMarkerLocalizer.
65  */
67  virtual public ArMarkerLocalizerInterface,
68  virtual public armarx::Component
69  {
70  public:
71  /**
72  * @see armarx::ManagedIceObject::getDefaultName()
73  */
74  std::string
75  getDefaultName() const override
76  {
77  return "ArMarkerLocalizer";
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  std::string frameName;
107  std::string agentName;
108  math::SimpleAbstractFunctionR1R6Ptr trajectory;
110 
111  public:
112  void reportImageAvailable(const std::string&, const Ice::Current&) override;
113  ArMarkerLocalizationResultList LocalizeAllMarkersNow(const Ice::Current&) override;
114  ArMarkerLocalizationResultList GetLatestLocalizationResult(const Ice::Current&) override;
115  };
116 } // namespace visionx
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::DummyArMarkerLocalizerPropertyDefinitions
Definition: DummyArMarkerLocalizer.h:42
visionx::DummyArMarkerLocalizer::GetLatestLocalizationResult
ArMarkerLocalizationResultList GetLatestLocalizationResult(const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:149
visionx::DummyArMarkerLocalizer::onExitComponent
void onExitComponent() override
Definition: DummyArMarkerLocalizer.cpp:116
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:345
visionx::DummyArMarkerLocalizer
Brief description of class DummyArMarkerLocalizer.
Definition: DummyArMarkerLocalizer.h:66
visionx::DummyArMarkerLocalizer::frameName
std::string frameName
Definition: DummyArMarkerLocalizer.h:106
visionx::DummyArMarkerLocalizer::startTime
IceUtil::Time startTime
Definition: DummyArMarkerLocalizer.h:109
visionx::DummyArMarkerLocalizer::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: DummyArMarkerLocalizer.cpp:121
visionx::DummyArMarkerLocalizer::reportImageAvailable
void reportImageAvailable(const std::string &, const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:128
visionx::DummyArMarkerLocalizer::trajectory
math::SimpleAbstractFunctionR1R6Ptr trajectory
Definition: DummyArMarkerLocalizer.h:108
visionx::DummyArMarkerLocalizer::onInitComponent
void onInitComponent() override
Definition: DummyArMarkerLocalizer.cpp:78
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
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
TimeUtil.h
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::DummyArMarkerLocalizer::getDefaultName
std::string getDefaultName() const override
Definition: DummyArMarkerLocalizer.h:75
armarx::ComponentPropertyDefinitions::ComponentPropertyDefinitions
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition: Component.cpp:35
visionx::DummyArMarkerLocalizer::onConnectComponent
void onConnectComponent() override
Definition: DummyArMarkerLocalizer.cpp:105
visionx::DummyArMarkerLocalizer::LocalizeAllMarkersNow
ArMarkerLocalizationResultList LocalizeAllMarkersNow(const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:134
visionx::DummyArMarkerLocalizer::onDisconnectComponent
void onDisconnectComponent() override
Definition: DummyArMarkerLocalizer.cpp:111
visionx::DummyArMarkerLocalizer::agentName
std::string agentName
Definition: DummyArMarkerLocalizer.h:107
visionx::DummyArMarkerLocalizerPropertyDefinitions::DummyArMarkerLocalizerPropertyDefinitions
DummyArMarkerLocalizerPropertyDefinitions(std::string prefix)
Definition: DummyArMarkerLocalizer.h:45
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27