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 #include "GraspObjectGroupStatechartContext.generated.h"
27 
31 
32 
33 using namespace armarx;
34 using namespace GraspObjectGroup;
35 
36 // DO NOT EDIT NEXT LINE
38 
39 
40 
43  GraspObjectTestGeneratedBase<GraspObjectTest> (stateData)
44 {
45 }
46 
48 {
49  GraspObjectGroupStatechartContext* context = getContext<GraspObjectGroupStatechartContext>();
50 
51  Eigen::Vector3f p = in.getInitialViewTarget()->toEigen();
52  FramedPositionPtr targetPos(new FramedPosition(p, context->getRobot()->getRootNode()->getName(), context->getRobot()->getName()));
53  context->getViewSelection()->addManualViewTarget(targetPos);
54 }
55 
56 
58 {
59  // put your user code for the exit point here
60  // execution time should be short (<100ms)
61  //getObjectMemoryObserver()->releaseObjectClass("MultiVitaminJuice");
62 
63 }
64 
65 // DO NOT EDIT NEXT FUNCTION
67 {
68  return "GraspObjectTest";
69 }
70 
71 // DO NOT EDIT NEXT FUNCTION
73 {
74  return XMLStateFactoryBasePtr(new GraspObjectTest(stateData));
75 }
76 
armarx::GraspObjectGroup::GraspObjectTest::CreateInstance
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
Definition: GraspObjectTest.cpp:72
armarx::XMLStateConstructorParams
Definition: XMLState.h:50
armarx::GraspObjectGroup::GraspObjectTest
Definition: GraspObjectTest.h:33
ObjectClass.h
armarx::GraspObjectGroup::GraspObjectTest::GetName
static std::string GetName()
Definition: GraspObjectTest.cpp:66
armarx::GraspObjectGroup::GraspObjectTest::Registry
static SubClassRegistry Registry
Definition: GraspObjectTest.h:47
IceInternal::Handle< FramedPosition >
armarx::XMLStateTemplate
Class for legacy to stay compatible with old statecharts.
Definition: XMLState.h:137
armarx::GraspObjectGroup::GraspObjectTest::onEnter
void onEnter() override
Definition: GraspObjectTest.cpp:47
GraspObjectTest.h
MemoryXCoreObjectFactories.h
armarx::XMLStateFactoryBasePtr
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
Definition: XMLState.h:65
MemoryXTypesObjectFactories.h
armarx::VariantType::FramedPosition
const VariantTypeId FramedPosition
Definition: FramedPose.h:39
armarx::GraspObjectGroup::GraspObjectTest::onExit
void onExit() override
Definition: GraspObjectTest.cpp:57
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::GraspObjectGroup::GraspObjectTest::GraspObjectTest
GraspObjectTest(XMLStateConstructorParams stateData)
Definition: GraspObjectTest.cpp:41