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 
27 #include <VisionX/interface/components/ArMarkerLocalizerInterface.h>
28 #include <VirtualRobot/math/AbstractFunctionR1R6.h>
30 #include <mutex>
31 
32 namespace visionx
33 {
34  /**
35  * @class DummyArMarkerLocalizerPropertyDefinitions
36  * @brief
37  */
40  {
41  public:
44  {
45  //defineRequiredProperty<std::string>("PropertyName", "Description");
46  //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
47  defineOptionalProperty<std::string>("AgentName", "Armar6", "Agent name");
48  defineOptionalProperty<std::string>("FrameName", "root", "Frame name");
49  }
50  };
51 
52  /**
53  * @defgroup Component-DummyArMarkerLocalizer DummyArMarkerLocalizer
54  * @ingroup VisionX-Components
55  * A description of the component DummyArMarkerLocalizer.
56  *
57  * @class DummyArMarkerLocalizer
58  * @ingroup Component-DummyArMarkerLocalizer
59  * @brief Brief description of class DummyArMarkerLocalizer.
60  *
61  * Detailed description of class DummyArMarkerLocalizer.
62  */
64  virtual public ArMarkerLocalizerInterface,
65  virtual public armarx::Component
66  {
67  public:
68  /**
69  * @see armarx::ManagedIceObject::getDefaultName()
70  */
71  std::string getDefaultName() const override
72  {
73  return "ArMarkerLocalizer";
74  }
75 
76  protected:
77  /**
78  * @see armarx::ManagedIceObject::onInitComponent()
79  */
80  void onInitComponent() override;
81 
82  /**
83  * @see armarx::ManagedIceObject::onConnectComponent()
84  */
85  void onConnectComponent() override;
86 
87  /**
88  * @see armarx::ManagedIceObject::onDisconnectComponent()
89  */
90  void onDisconnectComponent() override;
91 
92  /**
93  * @see armarx::ManagedIceObject::onExitComponent()
94  */
95  void onExitComponent() override;
96 
97  /**
98  * @see PropertyUser::createPropertyDefinitions()
99  */
101 
102  std::string frameName;
103  std::string agentName;
104  math::SimpleAbstractFunctionR1R6Ptr trajectory;
106 
107  public:
108  void reportImageAvailable(const std::string&, const Ice::Current&) override;
109  ArMarkerLocalizationResultList LocalizeAllMarkersNow(const Ice::Current&) override;
110  ArMarkerLocalizationResultList GetLatestLocalizationResult(const Ice::Current&) override;
111  };
112 }
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::DummyArMarkerLocalizerPropertyDefinitions
Definition: DummyArMarkerLocalizer.h:38
visionx::DummyArMarkerLocalizer::GetLatestLocalizationResult
ArMarkerLocalizationResultList GetLatestLocalizationResult(const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:136
visionx::DummyArMarkerLocalizer::onExitComponent
void onExitComponent() override
Definition: DummyArMarkerLocalizer.cpp:107
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
visionx::DummyArMarkerLocalizer
Brief description of class DummyArMarkerLocalizer.
Definition: DummyArMarkerLocalizer.h:63
visionx::DummyArMarkerLocalizer::frameName
std::string frameName
Definition: DummyArMarkerLocalizer.h:102
visionx::DummyArMarkerLocalizer::startTime
IceUtil::Time startTime
Definition: DummyArMarkerLocalizer.h:105
visionx::DummyArMarkerLocalizer::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: DummyArMarkerLocalizer.cpp:112
visionx::DummyArMarkerLocalizer::reportImageAvailable
void reportImageAvailable(const std::string &, const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:120
visionx::DummyArMarkerLocalizer::trajectory
math::SimpleAbstractFunctionR1R6Ptr trajectory
Definition: DummyArMarkerLocalizer.h:104
visionx::DummyArMarkerLocalizer::onInitComponent
void onInitComponent() override
Definition: DummyArMarkerLocalizer.cpp:73
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:95
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
TimeUtil.h
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::DummyArMarkerLocalizer::getDefaultName
std::string getDefaultName() const override
Definition: DummyArMarkerLocalizer.h:71
armarx::ComponentPropertyDefinitions::ComponentPropertyDefinitions
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition: Component.cpp:37
visionx::DummyArMarkerLocalizer::onConnectComponent
void onConnectComponent() override
Definition: DummyArMarkerLocalizer.cpp:95
visionx::DummyArMarkerLocalizer::LocalizeAllMarkersNow
ArMarkerLocalizationResultList LocalizeAllMarkersNow(const Ice::Current &) override
Definition: DummyArMarkerLocalizer.cpp:125
visionx::DummyArMarkerLocalizer::onDisconnectComponent
void onDisconnectComponent() override
Definition: DummyArMarkerLocalizer.cpp:101
visionx::DummyArMarkerLocalizer::agentName
std::string agentName
Definition: DummyArMarkerLocalizer.h:103
visionx::DummyArMarkerLocalizerPropertyDefinitions::DummyArMarkerLocalizerPropertyDefinitions
DummyArMarkerLocalizerPropertyDefinitions(std::string prefix)
Definition: DummyArMarkerLocalizer.h:42
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28