ROBOOP, A Robotics Object Oriented Package in C++
Main Page
Classes
Files
File List
File Members
control_select.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2004 Etienne Lachance
3
4
This library is free software; you can redistribute it and/or modify
5
it under the terms of the GNU Lesser General Public License as
6
published by the Free Software Foundation; either version 2.1 of the
7
License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18
19
Report problems and direct all questions to:
20
21
email: etienne.lachance@polymtl.ca or richard.gourdeau@polymtl.ca
22
23
-------------------------------------------------------------------------------
24
Revision_history:
25
26
2004/07/13: Ethan Tira-Thompson
27
-Added support for newmat's use_namespace #define, using ROBOOP namespace
28
29
2005/11/06: Etienne Lachance
30
- No need to provide a copy constructor and the assignment operator
31
(operator=) for Control_Select class. Instead we use the one provide by the
32
compiler.
33
-------------------------------------------------------------------------------
34
*/
35
36
37
#ifndef CONTROL_SELECT_H
38
#define CONTROL_SELECT_H
39
45
#include <string>
46
#include "
controller.h
"
47
48
#ifdef use_namespace
49
namespace
ROBOOP {
50
using namespace
NEWMAT;
51
#endif
52
53
#define NONE 0
54
#define PD 1
55
#define CTM 2
56
#define RRA 3
57
#define IMP 4
58
59
#define CONTROLLER "CONTROLLER"
60
61
#define PROPORTIONAL_DERIVATIVE "PROPORTIONAL_DERIVATIVE"
62
#define COMPUTED_TORQUE_METHOD "COMPUTED_TORQUE_METHOD"
63
#define RESOLVED_RATE_ACCELERATION "RESOLVED_RATE_ACCELERATION"
64
#define IMPEDANCE "IMPEDANCE"
65
96
class
Control_Select
97
{
98
public
:
99
Control_Select
();
100
Control_Select
(
const
std::string & filename);
101
int
get_dof();
102
void
set_control(
const
std::string & filename);
103
Proportional_Derivative
pd;
104
Computed_torque_method
ctm;
105
Resolved_acc
rra;
106
Impedance
impedance;
107
108
short
type
,
109
space_type;
110
std::string
ControllerName
;
111
private
:
112
int
dof
;
113
};
114
115
#ifdef use_namespace
116
}
117
#endif
118
119
#endif
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
source
control_select.h
Generated on Thu Dec 12 2013 11:38:27 for ROBOOP, A Robotics Object Oriented Package in C++ by
1.8.3.1