1 #include <SimoxUtility/algorithm/string/string_tools.h>
14 parent<Component>().usingProxyFromProperty(PROPERTY_NAME);
15 if (!_graspCandidateObserver && _graspCandidateObserverName.empty())
17 parent<Component>().getProperty(_graspCandidateObserverName,
makePropertyName(PROPERTY_NAME));
20 if (!_graspCandidateObserver)
22 parent<Component>().usingProxy(_graspCandidateObserverName);
28 if (!_graspCandidateObserver)
30 parent<Component>().getProxy(_graspCandidateObserver, _graspCandidateObserverName);
36 _graspCandidateObserver =
nullptr;
41 if (!properties->hasDefinition(PROPERTY_NAME))
43 properties->defineOptionalProperty<std::string>(
45 "GraspCandidateObserver",
46 "Name of the GraspCandidateObserver");
52 return _graspCandidateObserver;
57 return _graspCandidateObserverName;
62 if (_graspCandidateObserver)
64 return _graspCandidateObserver->getAllCandidates();
71 if (!_graspCandidateObserver)
75 if (_upstream_providers.empty())
77 return _graspCandidateObserver->getAllCandidates();
79 return _graspCandidateObserver->getCandidatesByProviders(_upstream_providers);
84 _upstream_providers = std::move(pr);
94 _graspCandidateObserverName = name;