Component.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <RobotAPI/interface/units/HandUnitInterface.h>
6 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
10 //#include <RobotAPI/libraries/armem/client/plugins.h>
17 
19 #include <armarx/control/components/control_skill_provider/ComponentInterface.h>
21 
23 {
24  class Component :
25  virtual public ::armarx::Component,
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()
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;
69  robotUnitPlugin;
72  robotReaderPlugin;
73  } remote;
74 
75  struct SkillBlueprints
76  {
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