DummyCriterion.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 
28 
29 namespace armarx
30 {
33  {
34  public:
37  {
38  // defineOptionalProperty<std::string>("CommonPlacesLearnerName", "CommonPlacesLearnerGraspSelectionCriterion", "The CommonPlacesLearner to use");
39  }
40  };
41 
43  {
44  public:
46 
47  // ManagedIceObject interface
48  protected:
49  void onInitGraspSelectionCriterion() override;
50  void onConnectGraspSelectionCriterion() override;
51  std::string getDefaultName() const override;
52 
54  {
58  }
59 
60  public:
61  GeneratedGraspList filterGrasps(const GeneratedGraspList& grasps, const Ice::Current&) override;
62  GraspingPlacementList filterPlacements(const GraspingPlacementList& placements, const Ice::Current&) override;
63  Ice::Int getHash(const Ice::Current&) const override
64  {
65  return 0;
66  }
67  };
68 
69 } // namespace spoac
70 
armarx::DummyCriterion
Definition: DummyCriterion.h:42
armarx::DummyCriterionPropertyDefinitions::DummyCriterionPropertyDefinitions
DummyCriterionPropertyDefinitions(std::string prefix)
Definition: DummyCriterion.h:35
armarx::DummyCriterion::filterGrasps
GeneratedGraspList filterGrasps(const GeneratedGraspList &grasps, const Ice::Current &) override
Definition: DummyCriterion.cpp:53
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::DummyCriterion::onConnectGraspSelectionCriterion
void onConnectGraspSelectionCriterion() override
Definition: DummyCriterion.cpp:41
armarx::DummyCriterion::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: DummyCriterion.h:53
armarx::GraspSelectionCriterionBase
Definition: GraspSelectionCriterionBase.h:43
armarx::DummyCriterion::onInitGraspSelectionCriterion
void onInitGraspSelectionCriterion() override
Definition: DummyCriterion.cpp:36
armarx::DummyCriterion::getHash
Ice::Int getHash(const Ice::Current &) const override
Definition: DummyCriterion.h:63
armarx::DummyCriterion::DummyCriterion
DummyCriterion()
Definition: DummyCriterion.cpp:32
GraspSelectionCriterionBase.h
CommonPlacesLearner.h
armarx::DummyCriterionPropertyDefinitions
Definition: DummyCriterion.h:31
Component.h
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:916
armarx::DummyCriterion::filterPlacements
GraspingPlacementList filterPlacements(const GraspingPlacementList &placements, const Ice::Current &) override
Definition: DummyCriterion.cpp:58
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::DummyCriterion::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: DummyCriterion.cpp:48
armarx::GraspSelectionCriterionPropertyDefinitions
Definition: GraspSelectionCriterionBase.h:32