FamiliarObjectDetectionExample.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <experimental/memory>
5 
6 #include <VirtualRobot/VirtualRobot.h>
7 
10 #include <ArmarXCore/interface/observers/ObserverInterface.h>
11 #include <ArmarXCore/util/tasks.h>
12 
14 
17 #include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
18 #include <RobotAPI/interface/armem/server/MemoryInterface.h>
19 #include <RobotAPI/interface/objectpose/FamiliarObjectPoseStorageInterface.h>
25 
27 {
28 
29  /**
30  * @defgroup Component-ExampleClient ExampleClient
31  * @ingroup RobotAPI-Components
32  * A description of the component ExampleClient.
33  *
34  * @class ExampleClient
35  * @ingroup Component-ExampleClient
36  * @brief Brief description of class ExampleClient.
37  *
38  * Detailed description of class ExampleClient.
39  */
41  virtual public armarx::Component,
43  {
44  public:
46 
47  /// @see armarx::ManagedIceObject::getDefaultName()
48  std::string getDefaultName() const override;
49 
50  protected:
52 
53  void onInitComponent() override;
54  void onConnectComponent() override;
55  void onDisconnectComponent() override;
56  void onExitComponent() override;
57 
58  void run();
59 
62 
63  private:
64  struct Properties
65  {
66  std::string robotName;
67 
68  armarx::arondto::ObjectID exemplaryFamiliarObjectID;
69 
70  } p;
71 
72  // Writing familiar object instances to memory
73  objpose::FamiliarObjectPoseStorageInterfacePrx familiarObjectPoseStoragePrx;
74 
75  // Reading familiar object instances from memory
78  familiarObjectInstanceReaderPlugin;
79  };
80 
81 } // namespace armarx::familiar_objects
armarx::familiar_objects::FamiliarObjectDetectionExample::run
void run()
armarx::familiar_objects::FamiliarObjectDetectionExample::storeExemplaryFamiliarObjectInMemory
void storeExemplaryFamiliarObjectInMemory() const
Definition: FamiliarObjectDetectionExample.cpp:109
armarx::armem::attachment::ObjectID
armem::MemoryID ObjectID
Definition: types.h:79
armarx::armem::client::plugins::ReaderWriterPlugin
A component plugin offering client-side access to a reader or writer and manages the lifecycle,...
Definition: ReaderWriterPlugin.h:44
armarx::familiar_objects::FamiliarObjectDetectionExample::readExemplaryFamiliarObjectFromMemory
void readExemplaryFamiliarObjectFromMemory() const
Definition: FamiliarObjectDetectionExample.cpp:190
armarx::familiar_objects::FamiliarObjectDetectionExample::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: FamiliarObjectDetectionExample.cpp:64
PeriodicTask.h
ReaderWriterPlugin.h
armarx::familiar_objects::FamiliarObjectDetectionExample::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: FamiliarObjectDetectionExample.cpp:87
std::experimental::fundamentals_v2::observer_ptr
Definition: ManagedIceObject.h:53
armarx::familiar_objects::FamiliarObjectDetectionExample::getDefaultName
std::string getDefaultName() const override
Definition: FamiliarObjectDetectionExample.cpp:81
LightweightRemoteGuiComponentPlugin.h
ArticulatedObjectReader.h
armarx::familiar_objects::FamiliarObjectDetectionExample::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: FamiliarObjectDetectionExample.cpp:92
armarx::familiar_objects::FamiliarObjectDetectionExample
Definition: FamiliarObjectDetectionExample.h:40
armarx::armem::obj::familiar_object_instance::Reader
Definition: ObjectReader.h:41
plugins.h
tasks.h
armarx::familiar_objects::FamiliarObjectDetectionExample::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: FamiliarObjectDetectionExample.cpp:295
Component.h
memory_definitions.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:91
armarx::familiar_objects
Definition: FamiliarObjectDetectionExample.cpp:52
IceUtil::Handle< class PropertyDefinitionContainer >
Time.h
armarx::familiar_objects::FamiliarObjectDetectionExample::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: FamiliarObjectDetectionExample.cpp:289
ObjectReader.h
armarx::armem::client::plugins::ListeningPluginUser
A memory name system client which listens to the memory updates topic (MemoryListenerInterface).
Definition: ListeningPluginUser.h:21
armarx::familiar_objects::FamiliarObjectDetectionExample::FamiliarObjectDetectionExample
FamiliarObjectDetectionExample()
Definition: FamiliarObjectDetectionExample.cpp:54
ArticulatedObjectWriter.h