TestStateForStatechartExecution.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 ArmarXCore::StatechartExecutionGroup
17 * @author Stefan Reither ( stefan dot reither at kit dot edu )
18 * @date 2019
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
24
25//#include <ArmarXCore/core/time/TimeUtil.h>
26//#include <ArmarXCore/observers/variant/DatafieldRef.h>
27
29
30using namespace armarx;
31using namespace StatechartExecutionGroup;
32
33// DO NOT EDIT NEXT LINE
34TestStateForStatechartExecution::SubClassRegistry
35 TestStateForStatechartExecution::Registry(TestStateForStatechartExecution::GetName(),
37
38void
40{
41 // put your user code for the enter-point here
42 // execution time should be short (<100ms)
43 i = 0;
44 std::cout << "Hallo onEnter()" << std::endl;
45
46 PosePtr p;
47 if (in.isblaSet())
48 {
49 ARMARX_INFO << VAROUT(*in.getbla());
50 p = in.getbla();
51 }
52 if (in.isintTestSet())
53 {
54 ARMARX_INFO << VAROUT(in.getintTest());
55 }
56
57 if (in.isbla2Set())
58 {
59 ARMARX_INFO << VAROUT(*in.getbla2());
60 }
61
62 if (in.isintListTestSet())
63 {
64 ARMARX_INFO << VAROUT(*in.getintListTest()[0]);
65 }
66 out.setOutputPose(p);
67}
68
69void
71{
72 // put your user code for the breaking point here
73 // execution time should be short (<100ms)
74 ARMARX_INFO << "MainState broke";
75}
76
77void
79{
80 // put your user code for the exit point here
81 // execution time should be short (<100ms)
82 // out.setOutputInt(500);
83 ARMARX_INFO << "MainState exited";
84}
85
86// DO NOT EDIT NEXT FUNCTION
#define VAROUT(x)
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< Pose > PosePtr
Definition Pose.h:306
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
Definition XMLState.h:64