KITProstheticHandInterface.ice
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2012-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 RobotAPI
19
* @author Julia Starke <julia dot starke at kit dot edu>
20
* @date 2019
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
25
#pragma once
26
27
module
KITProsthesis
28
{
29
module ProsthesisState
30
{
31
//the enclosing namespace scopes the c-style enum values
32
enum
State
33
{
34
Created
,
35
DiscoveringDevices
,
36
DiscoveringDevicesDone
,
37
Disconnected
,
38
Connecting
,
39
ConnectingDone
,
40
DiscoveringServices
,
41
DiscoveringServicesDone
,
42
ConnectingService
,
43
Running
,
44
Killed
45
};
46
};
47
48
struct
ProsthesisMotorValues
49
{
50
long
v
;
51
long
maxPWM
;
52
long
pos
;
53
};
54
55
struct
ProsthesisSensorValues
56
{
57
ProsthesisState::State
state
;
58
59
long
thumbPWM
;
60
long
thumbPos
;
61
62
long
fingerPWM
;
63
long
fingerPos
;
64
65
//add IMU here
66
};
67
68
interface
KITProstheticHandInterface
69
{
70
void
sendGrasp(
int
n);
71
void
sendThumbPWM(
ProsthesisMotorValues
motorValues);
72
void
sendFingerPWM(
ProsthesisMotorValues
motorValues);
73
74
ProsthesisSensorValues
getSensorValues();
75
};
76
};
KITProsthesis::ProsthesisState::Created
@ Created
Definition:
KITProstheticHandInterface.ice:34
KITProsthesis::ProsthesisMotorValues::v
long v
Definition:
KITProstheticHandInterface.ice:50
KITProsthesis::ProsthesisState::Running
@ Running
Definition:
KITProstheticHandInterface.ice:43
KITProsthesis::ProsthesisState::Killed
@ Killed
Definition:
KITProstheticHandInterface.ice:44
KITProsthesis::ProsthesisState::DiscoveringServices
@ DiscoveringServices
Definition:
KITProstheticHandInterface.ice:40
KITProsthesis::ProsthesisSensorValues::thumbPWM
long thumbPWM
Definition:
KITProstheticHandInterface.ice:59
KITProsthesis::ProsthesisMotorValues::pos
long pos
Definition:
KITProstheticHandInterface.ice:52
KITProsthesis::ProsthesisSensorValues
Definition:
KITProstheticHandInterface.ice:55
KITProsthesis::ProsthesisSensorValues::fingerPos
long fingerPos
Definition:
KITProstheticHandInterface.ice:63
KITProsthesis::ProsthesisState::State
State
Definition:
KITProstheticHandInterface.ice:32
KITProsthesis::ProsthesisState::ConnectingDone
@ ConnectingDone
Definition:
KITProstheticHandInterface.ice:39
KITProsthesis::ProsthesisState::DiscoveringDevicesDone
@ DiscoveringDevicesDone
Definition:
KITProstheticHandInterface.ice:36
KITProsthesis::ProsthesisState::Disconnected
@ Disconnected
Definition:
KITProstheticHandInterface.ice:37
KITProsthesis::ProsthesisState::DiscoveringDevices
@ DiscoveringDevices
Definition:
KITProstheticHandInterface.ice:35
KITProsthesis::ProsthesisMotorValues
Definition:
KITProstheticHandInterface.ice:48
KITProsthesis::ProsthesisSensorValues::fingerPWM
long fingerPWM
Definition:
KITProstheticHandInterface.ice:62
KITProsthesis::ProsthesisState::ConnectingService
@ ConnectingService
Definition:
KITProstheticHandInterface.ice:42
KITProsthesis::ProsthesisMotorValues::maxPWM
long maxPWM
Definition:
KITProstheticHandInterface.ice:51
KITProsthesis::ProsthesisSensorValues::state
ProsthesisState::State state
Definition:
KITProstheticHandInterface.ice:57
KITProsthesis
Definition:
KITProstheticHandInterface.ice:27
KITProsthesis::ProsthesisSensorValues::thumbPos
long thumbPos
Definition:
KITProstheticHandInterface.ice:60
KITProsthesis::ProsthesisState::DiscoveringServicesDone
@ DiscoveringServicesDone
Definition:
KITProstheticHandInterface.ice:41
KITProsthesis::KITProstheticHandInterface
Definition:
KITProstheticHandInterface.ice:68
KITProsthesis::ProsthesisState::Connecting
@ Connecting
Definition:
KITProstheticHandInterface.ice:38
RobotAPI
drivers
KITProsthesisIceDriver
example
KITProstheticHandInterface.ice
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17