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
25
#include <
MemoryX/libraries/memorytypes/entity/ObjectInstance.h
>
26
#include <
MemoryX/libraries/memorytypes/MemoryXTypesObjectFactories.h
>
27
#include <
MemoryX/core/MemoryXCoreObjectFactories.h
>
28
#include <
RobotAPI/libraries/core/FramedPose.h
>
29
30
using namespace
armarx
;
31
32
DummyCriterion::DummyCriterion
()
33
{
34
}
35
36
void
DummyCriterion::onInitGraspSelectionCriterion
()
37
{
38
// usingProxy("LongtermMemory");
39
}
40
41
void
DummyCriterion::onConnectGraspSelectionCriterion
()
42
{
43
// This would automatically add the SelectionCriterion
44
// graspSelectionManager = getProxy<GraspSelectionManagerInterfacePrx>(getProperty<std::string>("GraspSelectionManagerName").getValue());
45
// graspSelectionManager->registerAsGraspSelectionCriterion(GraspSelectionCriterionInterfacePrx::uncheckedCast(getProxy()));
46
}
47
48
std::string
DummyCriterion::getDefaultName
()
const
49
{
50
return
"DummyCriterion"
;
51
}
52
53
GeneratedGraspList
DummyCriterion::filterGrasps
(
const
GeneratedGraspList& grasps,
const
Ice::Current&)
54
{
55
return
grasps;
56
}
57
58
GraspingPlacementList
DummyCriterion::filterPlacements
(
const
GraspingPlacementList& placements,
const
Ice::Current&)
59
{
60
return
placements;
61
}
armarx::DummyCriterion::filterGrasps
GeneratedGraspList filterGrasps(const GeneratedGraspList &grasps, const Ice::Current &) override
Definition:
DummyCriterion.cpp:53
armarx::DummyCriterion::onConnectGraspSelectionCriterion
void onConnectGraspSelectionCriterion() override
Definition:
DummyCriterion.cpp:41
armarx::DummyCriterion::onInitGraspSelectionCriterion
void onInitGraspSelectionCriterion() override
Definition:
DummyCriterion.cpp:36
DummyCriterion.h
armarx::DummyCriterion::DummyCriterion
DummyCriterion()
Definition:
DummyCriterion.cpp:32
FramedPose.h
MemoryXCoreObjectFactories.h
ObjectInstance.h
MemoryXTypesObjectFactories.h
armarx::DummyCriterion::filterPlacements
GraspingPlacementList filterPlacements(const GraspingPlacementList &placements, const Ice::Current &) override
Definition:
DummyCriterion.cpp:58
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
RobotComponents
components
GraspSelectionManager
selectionCriteria
DummyCriterion.cpp
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17