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