Plugin.h
Go to the documentation of this file.
1 #pragma once
2 #include <experimental/memory>
3 #include <functional>
4 #include <queue>
5 #include <shared_mutex>
6 #include <thread>
7 #include <type_traits>
8 
9 #include <SimoxUtility/json/json.h>
10 
14 
15 #include <RobotAPI/interface/robot_name_service/RobotNameServiceInterface.h>
17 
19 {
20  const auto CONFIG_ROBOT_NAME = "name";
21  const auto CONFIG_XML_PACKAGE_PATH = "xml_package_path";
22  const auto CONFIG_XML_PACKAGE_PATH_PACKAGE = "package";
23  const auto CONFIG_XML_PACKAGE_PATH_PATH = "path";
24  const auto CONFIG_MNS_PRX = "mns_prx";
25  const auto CONFIG_SKILLS_MANAGER_PRX = "manager_prx";
26  const auto CONFIG_ARMS = "arms";
27  const auto CONFIG_ARM_KINEMATIC_CHAIN_NAME = "kinematic_chain_name";
28  const auto CONFIG_ARM_HAND = "hand";
29  const auto CONFIG_ARM_HAND_NAME = "name";
30  const auto CONFIG_ARM_HAND_FT_NAME = "ft_name";
31  const auto CONFIG_ARM_HAND_PRX = "hand_prx";
32  // TODO
33 } // namespace armarx::robot_name_service::client::constants
34 
35 namespace armarx
36 {
37  class RobotNameServiceComponentPluginUser; // forward declaration
38 }
39 
40 namespace armarx::plugins
41 {
43  {
44  public:
45  using ComponentPlugin::ComponentPlugin;
46 
47  void postOnInitComponent() override;
48 
49  void preOnConnectComponent() override;
50 
51  void postCreatePropertyDefinitions(PropertyDefinitionsPtr& properties) override;
52 
53  void preOnDisconnectComponent() override;
54 
55  private:
56  struct Properties
57  {
58  std::string configJson = "{}";
59 
60  armarx::robot_name_service::dti::RobotNameServiceInterfacePrx rns;
61  } properties;
62 
64 
66  };
67 } // namespace armarx::plugins
68 
69 namespace armarx
70 
71 {
73  {
74  public:
76 
77 
78  private:
80  };
81 } // namespace armarx
armarx::RobotNameServiceComponentPluginUser
Definition: Plugin.h:72
armarx::plugins::RobotNameServiceComponentPlugin
Definition: Plugin.h:42
armarx::plugins::RobotNameServiceComponentPlugin::preOnConnectComponent
void preOnConnectComponent() override
Definition: Plugin.cpp:88
armarx::robot_name_service::client::constants
Definition: Plugin.h:18
armarx::robot_name_service::client::constants::CONFIG_ARM_HAND_FT_NAME
const auto CONFIG_ARM_HAND_FT_NAME
Definition: Plugin.h:30
armarx::robot_name_service::client::constants::CONFIG_XML_PACKAGE_PATH_PACKAGE
const auto CONFIG_XML_PACKAGE_PATH_PACKAGE
Definition: Plugin.h:22
armarx::robot_name_service::client::constants::CONFIG_MNS_PRX
const auto CONFIG_MNS_PRX
Definition: Plugin.h:24
armarx::robot_name_service::client::constants::CONFIG_SKILLS_MANAGER_PRX
const auto CONFIG_SKILLS_MANAGER_PRX
Definition: Plugin.h:25
armarx::plugins::RobotNameServiceComponentPlugin::postCreatePropertyDefinitions
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
Definition: Plugin.cpp:135
RunningTask.h
std::experimental::fundamentals_v2::observer_ptr
Definition: ManagedIceObject.h:53
armarx::robot_name_service::client::constants::CONFIG_ARM_HAND
const auto CONFIG_ARM_HAND
Definition: Plugin.h:28
armarx::plugins::RobotNameServiceComponentPlugin::postOnInitComponent
void postOnInitComponent() override
Definition: Plugin.cpp:18
ManagedIceObject.h
armarx::plugins
This file is part of ArmarX.
Definition: DebugObserverComponentPlugin.cpp:28
armarx::ComponentPlugin
Definition: ComponentPlugin.h:38
armarx::robot_name_service::client::constants::CONFIG_XML_PACKAGE_PATH_PATH
const auto CONFIG_XML_PACKAGE_PATH_PATH
Definition: Plugin.h:23
Robot.h
armarx::robot_name_service::client::constants::CONFIG_ARM_KINEMATIC_CHAIN_NAME
const auto CONFIG_ARM_KINEMATIC_CHAIN_NAME
Definition: Plugin.h:27
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
armarx::robot_name_service::client::constants::CONFIG_ARM_HAND_PRX
const auto CONFIG_ARM_HAND_PRX
Definition: Plugin.h:31
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::robot_name_service::client::constants::CONFIG_ARM_HAND_NAME
const auto CONFIG_ARM_HAND_NAME
Definition: Plugin.h:29
armarx::robot_name_service::client::constants::CONFIG_ROBOT_NAME
const auto CONFIG_ROBOT_NAME
Definition: Plugin.h:20
armarx::robot_name_service::client::constants::CONFIG_XML_PACKAGE_PATH
const auto CONFIG_XML_PACKAGE_PATH
Definition: Plugin.h:21
ComponentPlugin.h
armarx::RobotNameServiceComponentPluginUser::RobotNameServiceComponentPluginUser
RobotNameServiceComponentPluginUser()
Definition: Plugin.cpp:8
armarx::robot_name_service::core::RobotInfo
Definition: Robot.h:36
armarx::robot_name_service::client::constants::CONFIG_ARMS
const auto CONFIG_ARMS
Definition: Plugin.h:26
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::plugins::RobotNameServiceComponentPlugin::preOnDisconnectComponent
void preOnDisconnectComponent() override
Definition: Plugin.cpp:142