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
35namespace armarx
36{
37 class RobotNameServiceComponentPluginUser; // forward declaration
38}
39
40namespace armarx::plugins
41{
43 {
44 public:
45 using ComponentPlugin::ComponentPlugin;
46
47 void postOnInitComponent() override;
48
49 void preOnConnectComponent() override;
50
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
69namespace armarx
70
71{
81} // namespace armarx
ManagedIceObject(ManagedIceObject const &other)
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
Definition Plugin.cpp:135
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.