CyberGloveProsthesisControl.h
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 RobotAPI::ProsthesisKinestheticTeachIn
17
* @author Julia Starke ( julia dot starke at kit dot edu )
18
* @date 2020
19
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
#pragma once
23
24
#include <RobotAPI/statecharts/ProsthesisKinestheticTeachIn/CyberGloveProsthesisControl.generated.h>
25
//#include <RobotAPI/libraries/SimpleJsonLogger/SimpleJsonLogger.h>
26
27
namespace
armarx::ProsthesisKinestheticTeachIn
28
{
29
class
CyberGloveProsthesisControl
:
30
public
CyberGloveProsthesisControlGeneratedBase < CyberGloveProsthesisControl >
31
{
32
public
:
33
CyberGloveProsthesisControl
(
const
XMLStateConstructorParams
& stateData):
34
XMLStateTemplate
<
CyberGloveProsthesisControl
> (stateData), CyberGloveProsthesisControlGeneratedBase <
CyberGloveProsthesisControl
> (stateData)
35
{
36
}
37
38
enum class
PhaseType
39
{
40
CalibOpen
,
41
CalibClose
,
42
StartPose
,
43
TeachIn
44
};
45
46
// inherited from StateBase
47
void
onEnter
()
override
;
48
void
run
()
override
;
49
// void onBreak() override;
50
void
onExit
()
override
;
51
52
// static functions for AbstractFactory Method
53
static
XMLStateFactoryBasePtr
CreateInstance
(
XMLStateConstructorParams
stateData);
54
static
SubClassRegistry
Registry
;
55
56
// DO NOT INSERT ANY CLASS MEMBERS,
57
// use stateparameters instead,
58
// if classmember are neccessary nonetheless, reset them in onEnter
59
60
private
:
61
void
shapeHand(
float
fingers,
float
thumb);
62
//SimpleJsonLoggerEntry getRawJointValuesForCalibration(CyberGloveValues& openValues, CyberGloveValues& closedValues);
63
//void addCurrentRawJointValues(CyberGloveValues& currentValues, SimpleJsonLoggerEntry& e);
64
65
66
};
67
}
68
69
70
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::onExit
void onExit() override
Definition:
CyberGloveProsthesisControl.cpp:333
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::CreateInstance
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
Definition:
CyberGloveProsthesisControl.cpp:341
armarx::XMLStateConstructorParams
Definition:
XMLState.h:50
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl
Definition:
CyberGloveProsthesisControl.h:29
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::run
void run() override
Definition:
CyberGloveProsthesisControl.cpp:94
IceInternal::Handle
Definition:
forward_declarations.h:8
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::onEnter
void onEnter() override
Definition:
CyberGloveProsthesisControl.cpp:48
armarx::XMLStateTemplate
Class for legacy to stay compatible with old statecharts.
Definition:
XMLState.h:137
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::PhaseType::StartPose
@ StartPose
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::PhaseType::TeachIn
@ TeachIn
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::PhaseType
PhaseType
Definition:
CyberGloveProsthesisControl.h:38
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::CyberGloveProsthesisControl
CyberGloveProsthesisControl(const XMLStateConstructorParams &stateData)
Definition:
CyberGloveProsthesisControl.h:33
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::PhaseType::CalibClose
@ CalibClose
armarx::ProsthesisKinestheticTeachIn
Definition:
CyberGloveProsthesisControl.h:27
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::Registry
static SubClassRegistry Registry
Definition:
CyberGloveProsthesisControl.h:54
armarx::ProsthesisKinestheticTeachIn::CyberGloveProsthesisControl::PhaseType::CalibOpen
@ CalibOpen
RobotAPI
statecharts
ProsthesisKinestheticTeachIn
CyberGloveProsthesisControl.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17