GraspSelectionCriterionBase.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotComponents
17 * @author Valerij Wittenbeck ( valerij.wittenbeck at student dot kit dot edu)
18 * @date 2016
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 
23 #pragma once
24 
25 #include <RobotComponents/interface/components/GraspingManager/GraspSelectionManagerInterface.h>
26 
28 
29 namespace armarx
30 {
31 
34  {
35  public:
38  {
39  defineOptionalProperty<std::string>("GraspSelectionManagerName", "GraspSelectionManager", "Name of the GraspSelectionManager proxy");
40  }
41  };
42 
44  virtual public GraspSelectionCriterionInterface,
45  virtual public Component
46  {
47  public:
48  /**
49  * @brief ABC for the GraspSelectionCriterion
50  *
51  * Each new criterion needs a filterGrasps(const GeneratedGraspList& grasps, const Ice::Current&) and
52  * filterPlacements(const GraspingPlacementList& placements, const Ice::Current&) method. If a criterion is
53  * supposed to only filter a GeneratedGraspList or GraspingPlacementList, respectively, the other method needs
54  * to only return the input list.
55  *
56  */
58  virtual void onInitGraspSelectionCriterion() = 0;
59  virtual void onConnectGraspSelectionCriterion() = 0;
60 
61  protected:
62  GraspSelectionManagerInterfacePrx graspSelectionManager;
63 
64  // ManagedIceObject interface
65  protected:
66  void onInitComponent() override;
67  void onConnectComponent() override;
68 
70  {
74  }
75 
76  };
77 
78 }
79 
armarx::GraspSelectionCriterionBase::GraspSelectionCriterionBase
GraspSelectionCriterionBase()
ABC for the GraspSelectionCriterion.
armarx::GraspSelectionCriterionBase::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: GraspSelectionCriterionBase.cpp:37
armarx::GraspSelectionCriterionBase::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: GraspSelectionCriterionBase.cpp:31
armarx::GraspSelectionCriterionBase::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: GraspSelectionCriterionBase.h:69
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::GraspSelectionCriterionBase::onConnectGraspSelectionCriterion
virtual void onConnectGraspSelectionCriterion()=0
armarx::GraspSelectionCriterionBase
Definition: GraspSelectionCriterionBase.h:43
armarx::GraspSelectionCriterionBase::graspSelectionManager
GraspSelectionManagerInterfacePrx graspSelectionManager
Definition: GraspSelectionCriterionBase.h:62
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::GraspSelectionCriterionPropertyDefinitions::GraspSelectionCriterionPropertyDefinitions
GraspSelectionCriterionPropertyDefinitions(std::string prefix)
Definition: GraspSelectionCriterionBase.h:36
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx::GraspSelectionCriterionBase::onInitGraspSelectionCriterion
virtual void onInitGraspSelectionCriterion()=0
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::GraspSelectionCriterionPropertyDefinitions
Definition: GraspSelectionCriterionBase.h:32