GraspCandidateObserverComponentPlugin.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <RobotAPI/interface/observers/GraspCandidateObserverInterface.h>
6 
7 namespace armarx
8 {
9  namespace plugins
10  {
12  {
13  public:
14  using ComponentPlugin::ComponentPlugin;
15 
16  void preOnInitComponent() override;
17  void preOnConnectComponent() override;
18  void postOnDisconnectComponent() override;
19 
20  void postCreatePropertyDefinitions(PropertyDefinitionsPtr& properties) override;
21 
22  grasping::GraspCandidateObserverInterfacePrx getGraspCandidateObserver();
23 
24  void setGraspCandidateObserverName(const std::string& name);
25  const std::string& getGraspCandidateObserverName() const;
26 
27  grasping::GraspCandidateSeq getAllCandidates() const;
28  grasping::GraspCandidateSeq getCandidates() const;
29  void setUpstreamGraspCandidateProviders(std::vector<std::string> pr);
30  void setUpstreamGraspCandidateProvidersFromCSV(const std::string& csv,
31  const std::string& delim = ",;");
32 
33  private:
34  static constexpr const char* PROPERTY_NAME = "GraspCandidateObserverName";
35  std::string _graspCandidateObserverName;
36  grasping::GraspCandidateObserverInterfacePrx _graspCandidateObserver;
37  std::vector<std::string> _upstream_providers;
38  };
39  } // namespace plugins
40 } // namespace armarx
41 
43 
44 namespace armarx
45 {
46  /**
47  * @brief Provides a ready-to-use GraspCandidateObserver.
48  */
50  {
51  public:
53  grasping::GraspCandidateObserverInterfacePrx getGraspCandidateObserver();
54 
59 
60  grasping::GraspCandidateSeq getAllGraspCandidates() const;
61  grasping::GraspCandidateSeq getGraspCandidates() const;
62 
63  private:
65  };
66 } // namespace armarx
67 
68 namespace armarx
69 {
70  namespace plugins
71  {
72  // Legacy typedef.
75  } // namespace plugins
76 } // namespace armarx
armarx::plugins::GraspCandidateObserverComponentPlugin::setUpstreamGraspCandidateProviders
void setUpstreamGraspCandidateProviders(std::vector< std::string > pr)
Definition: GraspCandidateObserverComponentPlugin.cpp:91
armarx::plugins::GraspCandidateObserverComponentPlugin::getAllCandidates
grasping::GraspCandidateSeq getAllCandidates() const
Definition: GraspCandidateObserverComponentPlugin.cpp:67
armarx::GraspCandidateObserverComponentPluginUser::GraspCandidateObserverComponentPluginUser
GraspCandidateObserverComponentPluginUser()
Definition: GraspCandidateObserverComponentPlugin.cpp:116
armarx::GraspCandidateObserverComponentPluginUser::getGraspCandidateObserverComponentPlugin
armarx::plugins::GraspCandidateObserverComponentPlugin & getGraspCandidateObserverComponentPlugin()
Definition: GraspCandidateObserverComponentPlugin.cpp:128
armarx::plugins::GraspCandidateObserverComponentPlugin::setGraspCandidateObserverName
void setGraspCandidateObserverName(const std::string &name)
Definition: GraspCandidateObserverComponentPlugin.cpp:106
plugins
armarx::plugins::GraspCandidateObserverComponentPlugin::postOnDisconnectComponent
void postOnDisconnectComponent() override
Definition: GraspCandidateObserverComponentPlugin.cpp:38
armarx::plugins::GraspCandidateObserverComponentPluginUser
armarx::GraspCandidateObserverComponentPluginUser GraspCandidateObserverComponentPluginUser
Definition: GraspCandidateObserverComponentPlugin.h:74
armarx::GraspCandidateObserverComponentPluginUser::getGraspCandidateObserver
grasping::GraspCandidateObserverInterfacePrx getGraspCandidateObserver()
Definition: GraspCandidateObserverComponentPlugin.cpp:122
armarx::plugins::GraspCandidateObserverComponentPlugin
Definition: GraspCandidateObserverComponentPlugin.h:11
ManagedIceObject.h
armarx::GraspCandidateObserverComponentPluginUser::getAllGraspCandidates
grasping::GraspCandidateSeq getAllGraspCandidates() const
Definition: GraspCandidateObserverComponentPlugin.cpp:142
armarx::ComponentPlugin
Definition: ComponentPlugin.h:37
armarx::plugins::GraspCandidateObserverComponentPlugin::setUpstreamGraspCandidateProvidersFromCSV
void setUpstreamGraspCandidateProvidersFromCSV(const std::string &csv, const std::string &delim=",;")
Definition: GraspCandidateObserverComponentPlugin.cpp:98
armarx::plugins::GraspCandidateObserverComponentPlugin::preOnConnectComponent
void preOnConnectComponent() override
Definition: GraspCandidateObserverComponentPlugin.cpp:29
armarx::GraspCandidateObserverComponentPluginUser
Provides a ready-to-use GraspCandidateObserver.
Definition: GraspCandidateObserverComponentPlugin.h:49
armarx::plugins::GraspCandidateObserverComponentPlugin::getGraspCandidateObserverName
const std::string & getGraspCandidateObserverName() const
Definition: GraspCandidateObserverComponentPlugin.cpp:61
armarx::plugins::GraspCandidateObserverComponentPlugin::getCandidates
grasping::GraspCandidateSeq getCandidates() const
Definition: GraspCandidateObserverComponentPlugin.cpp:77
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:162
IceUtil::Handle< class PropertyDefinitionContainer >
ComponentPlugin.h
armarx::GraspCandidateObserverComponentPluginUser::getGraspCandidates
grasping::GraspCandidateSeq getGraspCandidates() const
Definition: GraspCandidateObserverComponentPlugin.cpp:148
armarx::plugins::GraspCandidateObserverComponentPlugin::getGraspCandidateObserver
grasping::GraspCandidateObserverInterfacePrx getGraspCandidateObserver()
Definition: GraspCandidateObserverComponentPlugin.cpp:55
armarx::plugins::GraspCandidateObserverComponentPlugin::postCreatePropertyDefinitions
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
Definition: GraspCandidateObserverComponentPlugin.cpp:44
armarx::plugins::GraspCandidateObserverComponentPlugin::preOnInitComponent
void preOnInitComponent() override
Definition: GraspCandidateObserverComponentPlugin.cpp:13
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27