DummyCriterion.cpp
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#include "DummyCriterion.h"
24
26
30
31using namespace armarx;
32
36
37void
39{
40 // usingProxy("LongtermMemory");
41}
42
43void
45{
46 // This would automatically add the SelectionCriterion
47 // graspSelectionManager = getProxy<GraspSelectionManagerInterfacePrx>(getProperty<std::string>("GraspSelectionManagerName").getValue());
48 // graspSelectionManager->registerAsGraspSelectionCriterion(GraspSelectionCriterionInterfacePrx::uncheckedCast(getProxy()));
49}
50
51std::string
53{
54 return "DummyCriterion";
55}
56
57GeneratedGraspList
58DummyCriterion::filterGrasps(const GeneratedGraspList& grasps, const Ice::Current&)
59{
60 return grasps;
61}
62
63GraspingPlacementList
64DummyCriterion::filterPlacements(const GraspingPlacementList& placements, const Ice::Current&)
65{
66 return placements;
67}
GeneratedGraspList filterGrasps(const GeneratedGraspList &grasps, const Ice::Current &) override
void onInitGraspSelectionCriterion() override
GraspingPlacementList filterPlacements(const GraspingPlacementList &placements, const Ice::Current &) override
void onConnectGraspSelectionCriterion() override
std::string getDefaultName() const override
Retrieve default name of component.
This file offers overloads of toIce() and fromIce() functions for STL container types.