ArVizComponentPlugin.h
Go to the documentation of this file.
1#pragma once
2
4
6
7#include <RobotAPI/interface/visman/Component.h>
8
9namespace armarx::plugins
10{
12 {
13 public:
14 using ComponentPlugin::ComponentPlugin;
15
16 void preOnInitComponent() override;
17
18 void preOnConnectComponent() override;
19
21
23
24 std::string getTopicName();
25
26 std::string getStorageName();
27
28 std::string getEventTopicName();
29
30 visman::components::visman_core::VISManEventTopicListenerPrx eventTopicPrx;
31
32
33 };
34} // namespace armarx::plugins
35
37
38namespace armarx
39{
40 /**
41 * @brief Provides a ready-to-use ArViz client `arviz` as member variable.
42 */
44 {
45 public:
47
49
50
51 void publishEvent(std::string eventName);
52
54
55
58 {
59 return arviz;
60 }
61
62 visman::components::visman_core::VISManEventTopicListenerPrx&
64 {
65 return plugin->eventTopicPrx;
66 }
67
68 private:
70
71 };
72} // namespace armarx
73
74namespace armarx::plugins
75{
76 // Legacy typedef.
78} // namespace armarx::plugins
Provides a ready-to-use ArViz client arviz as member variable.
armarx::viz::Client & getArvizClient()
void publishEvent(std::string eventName)
visman::components::visman_core::VISManEventTopicListenerPrx & getEventTopic()
ManagedIceObject(ManagedIceObject const &other)
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
visman::components::visman_core::VISManEventTopicListenerPrx eventTopicPrx
This file is part of ArmarX.
armarx::ArVizComponentPluginUser ArVizComponentPluginUser
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.