GraspCandidateObserverComponentPlugin.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <RobotAPI/interface/observers/GraspCandidateObserverInterface.h>
6
7namespace 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
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
44namespace armarx
45{
46 /**
47 * @brief Provides a ready-to-use GraspCandidateObserver.
48 */
66} // namespace armarx
67
68namespace armarx
69{
70 namespace plugins
71 {
72 // Legacy typedef.
75 } // namespace plugins
76} // namespace armarx
grasping::GraspCandidateObserverInterfacePrx getGraspCandidateObserver()
armarx::plugins::GraspCandidateObserverComponentPlugin & getGraspCandidateObserverComponentPlugin()
ManagedIceObject(ManagedIceObject const &other)
void setUpstreamGraspCandidateProvidersFromCSV(const std::string &csv, const std::string &delim=",;")
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
This file is part of ArmarX.
armarx::GraspCandidateObserverComponentPluginUser GraspCandidateObserverComponentPluginUser
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.