GraspObjectTest.cpp
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2014-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package RobotSkillTemplates::GraspObjectGroup
19 * @author David ( david dot schiebener at kit dot edu )
20 * @date 2014
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24
25#include "GraspObjectTest.h"
26
27#include "GraspObjectGroupStatechartContext.generated.h"
31
32
33using namespace armarx;
34using namespace GraspObjectGroup;
35
36// DO NOT EDIT NEXT LINE
37GraspObjectTest::SubClassRegistry GraspObjectTest::Registry(GraspObjectTest::GetName(),
39
42 GraspObjectTestGeneratedBase<GraspObjectTest>(stateData)
43{
44}
45
46void
48{
49 GraspObjectGroupStatechartContext* context = getContext<GraspObjectGroupStatechartContext>();
50
51 Eigen::Vector3f p = in.getInitialViewTarget()->toEigen();
53 p, context->getRobot()->getRootNode()->getName(), context->getRobot()->getName()));
54 context->getViewSelection()->addManualViewTarget(targetPos);
55}
56
57void
59{
60 // put your user code for the exit point here
61 // execution time should be short (<100ms)
62 //getObjectMemoryObserver()->releaseObjectClass("MultiVitaminJuice");
63}
64
65// DO NOT EDIT NEXT FUNCTION
66std::string
68{
69 return "GraspObjectTest";
70}
71
72// DO NOT EDIT NEXT FUNCTION
The FramedPosition class.
Definition FramedPose.h:158
GraspObjectTest(XMLStateConstructorParams stateData)
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
Class for legacy to stay compatible with old statecharts.
Definition XMLState.h:147
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< FramedPosition > FramedPositionPtr
Definition FramedPose.h:149
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
Definition XMLState.h:64