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
8
#include <
ArmarXCore/core/Component.h
>
9
#include <
ArmarXCore/core/services/tasks/PeriodicTask.h
>
10
#include <ArmarXCore/interface/observers/ObserverInterface.h>
11
#include <
ArmarXCore/util/tasks.h
>
12
13
#include <
ArmarXGui/libraries/ArmarXGuiComponentPlugins/LightweightRemoteGuiComponentPlugin.h
>
14
15
#include "
RobotAPI/libraries/armem/client/plugins/ReaderWriterPlugin.h
"
16
#include "
RobotAPI/libraries/armem_objects/client/familiar_object_instance/ObjectReader.h
"
17
#include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
18
#include <RobotAPI/interface/armem/server/MemoryInterface.h>
19
#include <RobotAPI/interface/objectpose/FamiliarObjectPoseStorageInterface.h>
20
#include <
RobotAPI/libraries/armem/client/plugins.h
>
21
#include <
RobotAPI/libraries/armem/core/Time.h
>
22
#include <
RobotAPI/libraries/armem/core/wm/memory_definitions.h
>
23
#include <
RobotAPI/libraries/armem_objects/client/articulated_object/ArticulatedObjectReader.h
>
24
#include <
RobotAPI/libraries/armem_objects/client/articulated_object/ArticulatedObjectWriter.h
>
25
26
namespace
armarx::familiar_objects
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
*/
40
class
FamiliarObjectDetectionExample
:
41
virtual
public
armarx::Component
,
42
virtual
public
armarx::armem::client::ComponentPluginUser
43
{
44
public
:
45
FamiliarObjectDetectionExample
();
46
47
/// @see armarx::ManagedIceObject::getDefaultName()
48
std::string
getDefaultName
()
const override
;
49
50
protected
:
51
armarx::PropertyDefinitionsPtr
createPropertyDefinitions
()
override
;
52
53
void
onInitComponent
()
override
;
54
void
onConnectComponent
()
override
;
55
void
onDisconnectComponent
()
override
;
56
void
onExitComponent
()
override
;
57
58
void
run
();
59
60
void
storeExemplaryFamiliarObjectInMemory
()
const
;
61
void
readExemplaryFamiliarObjectFromMemory
()
const
;
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
76
std::experimental::observer_ptr
<
armem::client::plugins::ReaderWriterPlugin
<
77
armarx::armem::obj::familiar_object_instance::Reader
>>
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
RobotAPI
components
FamiliarObjectDetectionExample
FamiliarObjectDetectionExample.h
Generated on Sat Mar 29 2025 09:17:25 for armarx_documentation by
1.8.17