Component.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
ArmarXCore/core/Component.h
>
4
5
#include <RobotAPI/interface/units/HandUnitInterface.h>
6
#include <RobotAPI/interface/units/KinematicUnitInterface.h>
7
#include <
RobotAPI/libraries/RobotAPIComponentPlugins/ArVizComponentPlugin.h
>
8
#include <
RobotAPI/libraries/RobotAPIComponentPlugins/RobotUnitComponentPlugin.h
>
9
#include <
RobotAPI/libraries/RobotAPIComponentPlugins/TrajectoryPlayerComponentPlugin.h
>
10
//#include <RobotAPI/libraries/armem/client/plugins.h>
11
#include <
RobotAPI/libraries/armem/client/plugins.h
>
12
#include <
RobotAPI/libraries/armem/client/plugins/PluginUser.h
>
13
#include <
RobotAPI/libraries/armem/client/plugins/ReaderWriterPlugin.h
>
14
#include <
RobotAPI/libraries/armem_robot_state/client/common/VirtualRobotReader.h
>
15
#include <
RobotAPI/libraries/skills/provider/SkillProviderComponentPlugin.h
>
16
#include <
RobotAPI/libraries/skills/provider/blueprints/SkillWithContextBlueprint.h
>
17
18
#include <
armarx/control/client/ComponentPlugin.h
>
19
#include <armarx/control/components/control_skill_provider/ComponentInterface.h>
20
#include <
armarx/control/skills/skills/ZeroTorque.h
>
21
22
namespace
armarx::control::components::control_skill_provider
23
{
24
class
Component
:
25
virtual
public
::armarx::Component
,
26
virtual
public
::armarx::control::components::control_skill_provider::ComponentInterface
,
27
virtual
public
::armarx::SkillProviderComponentPluginUser
,
28
virtual
public
::armarx::armem::client::PluginUser
,
29
virtual
public
::armarx::ArVizComponentPluginUser
,
30
virtual
public
::armarx::TrajectoryPlayerComponentPluginUser
,
31
virtual
public
armarx::control::client::ComponentPluginUser
32
//virtual public armarx::armem::client::ComponentPluginUser
33
{
34
35
public
:
36
Component
();
37
38
/// @see armarx::ManagedIceObject::getDefaultName()
39
std::string
getDefaultName
()
const override
;
40
41
/// Get the component's default name.
42
static
std::string
GetDefaultName
();
43
44
45
protected
:
46
/// @see PropertyUser::createPropertyDefinitions()
47
::armarx::PropertyDefinitionsPtr
createPropertyDefinitions
()
override
;
48
49
/// @see armarx::ManagedIceObject::onInitComponent()
50
void
onInitComponent
()
override
;
51
52
/// @see armarx::ManagedIceObject::onConnectComponent()
53
void
onConnectComponent
()
override
;
54
55
/// @see armarx::ManagedIceObject::onDisconnectComponent()
56
void
onDisconnectComponent
()
override
;
57
58
/// @see armarx::ManagedIceObject::onExitComponent()
59
void
onExitComponent
()
override
;
60
61
62
private
:
63
struct
Remote
64
{
65
::armarx::KinematicUnitInterfacePrx kinematicUnit;
66
::armarx::HandUnitInterfacePrx leftHandUnit;
67
::armarx::HandUnitInterfacePrx rightHandUnit;
68
std::experimental::observer_ptr<armarx::plugins::RobotUnitComponentPlugin>
69
robotUnitPlugin;
70
std::experimental::observer_ptr
<
71
armem::client::plugins::ReaderWriterPlugin<armem::robot_state::VirtualRobotReader>
>
72
robotReaderPlugin;
73
} remote;
74
75
struct
SkillBlueprints
76
{
77
std::experimental::observer_ptr
<
78
armarx::skills::SkillWithContextBlueprint<skills::skills::ZeroTorque>
>
79
zeroTorque;
80
} skillBlueprints;
81
82
struct
Properties
83
{
84
std::string robotName;
85
} properties;
86
87
static
const
std::string defaultName;
88
};
89
90
}
// namespace armarx::control::components::control_skill_provider
ZeroTorque.h
ArVizComponentPlugin.h
armarx::control::components::control_skill_provider::Component::onExitComponent
void onExitComponent() override
Definition:
Component.cpp:116
SkillProviderComponentPlugin.h
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::control::components::control_skill_provider::ComponentInterface
Definition:
ComponentInterface.ice:14
armarx::control::components::control_skill_provider::Component::getDefaultName
std::string getDefaultName() const override
Definition:
Component.cpp:123
armarx::control::components::control_skill_provider::Component::onDisconnectComponent
void onDisconnectComponent() override
Definition:
Component.cpp:111
ReaderWriterPlugin.h
armarx::skills::SkillWithContextBlueprint
Definition:
SkillWithContextBlueprint.h:38
std::experimental::fundamentals_v2::observer_ptr
Definition:
ManagedIceObject.h:53
armarx::control::components::control_skill_provider::Component::onConnectComponent
void onConnectComponent() override
Definition:
Component.cpp:47
armarx::control::components::control_skill_provider
Definition:
Component.cpp:16
armarx::control::components::control_skill_provider::Component::Component
Component()
Definition:
Component.cpp:134
armarx::armem::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition:
PluginUser.h:29
armarx::control::client::ComponentPluginUser
Definition:
ComponentPlugin.h:147
armarx::SkillProviderComponentPluginUser
Definition:
SkillProviderComponentPlugin.h:120
armarx::control::components::control_skill_provider::Component
Definition:
Component.h:24
armarx::ArVizComponentPluginUser
Provides a ready-to-use ArViz client arviz as member variable.
Definition:
ArVizComponentPlugin.h:36
armarx::control::components::control_skill_provider::Component::GetDefaultName
static std::string GetDefaultName()
Get the component's default name.
Definition:
Component.cpp:129
VirtualRobotReader.h
plugins.h
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition:
Component.h:95
armarx::TrajectoryPlayerComponentPluginUser
Provides a ready-to-use TrajectoryPlayer.
Definition:
TrajectoryPlayerComponentPlugin.h:41
IceUtil::Handle< class PropertyDefinitionContainer >
SkillWithContextBlueprint.h
PluginUser.h
TrajectoryPlayerComponentPlugin.h
ComponentPlugin.h
armarx::control::components::control_skill_provider::Component::createPropertyDefinitions
::armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
Component.cpp:20
armarx::control::components::control_skill_provider::Component::onInitComponent
void onInitComponent() override
Definition:
Component.cpp:35
RobotUnitComponentPlugin.h
armarx
control
components
control_skill_provider
Component.h
Generated on Sat Oct 12 2024 09:14:01 for armarx_documentation by
1.8.17