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 <
RobotAPI/libraries/core/FramedPose.h
>
26
27
#include <
MemoryX/core/MemoryXCoreObjectFactories.h
>
28
#include <
MemoryX/libraries/memorytypes/MemoryXTypesObjectFactories.h
>
29
#include <
MemoryX/libraries/memorytypes/entity/ObjectInstance.h
>
30
31
using namespace
armarx
;
32
33
DummyCriterion::DummyCriterion
()
34
{
35
}
36
37
void
38
DummyCriterion::onInitGraspSelectionCriterion
()
39
{
40
// usingProxy("LongtermMemory");
41
}
42
43
void
44
DummyCriterion::onConnectGraspSelectionCriterion
()
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
51
std::string
52
DummyCriterion::getDefaultName
()
const
53
{
54
return
"DummyCriterion"
;
55
}
56
57
GeneratedGraspList
58
DummyCriterion::filterGrasps
(
const
GeneratedGraspList& grasps,
const
Ice::Current&)
59
{
60
return
grasps;
61
}
62
63
GraspingPlacementList
64
DummyCriterion::filterPlacements
(
const
GraspingPlacementList& placements,
const
Ice::Current&)
65
{
66
return
placements;
67
}
armarx::DummyCriterion::filterGrasps
GeneratedGraspList filterGrasps(const GeneratedGraspList &grasps, const Ice::Current &) override
Definition:
DummyCriterion.cpp:58
armarx::DummyCriterion::onConnectGraspSelectionCriterion
void onConnectGraspSelectionCriterion() override
Definition:
DummyCriterion.cpp:44
armarx::DummyCriterion::onInitGraspSelectionCriterion
void onInitGraspSelectionCriterion() override
Definition:
DummyCriterion.cpp:38
DummyCriterion.h
armarx::DummyCriterion::DummyCriterion
DummyCriterion()
Definition:
DummyCriterion.cpp:33
FramedPose.h
MemoryXCoreObjectFactories.h
ObjectInstance.h
MemoryXTypesObjectFactories.h
armarx::DummyCriterion::filterPlacements
GraspingPlacementList filterPlacements(const GraspingPlacementList &placements, const Ice::Current &) override
Definition:
DummyCriterion.cpp:64
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:27
armarx::DummyCriterion::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition:
DummyCriterion.cpp:52
RobotComponents
components
GraspSelectionManager
selectionCriteria
DummyCriterion.cpp
Generated on Sat Apr 12 2025 09:13:39 for armarx_documentation by
1.8.17