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 static const char header_Control_Select_rcsid[] = "$Id: control_select.h,v 1.4 2006/05/16 16:11:15 gourdeau Exp $";
47 
48 
49 #include <string>
50 #include "controller.h"
51 
52 #ifdef use_namespace
53 namespace ROBOOP {
54  using namespace NEWMAT;
55 #endif
56 
57 #define NONE 0
58 #define PD 1
59 #define CTM 2
60 #define RRA 3
61 #define IMP 4
62 
63 #define CONTROLLER "CONTROLLER"
64 
65 #define PROPORTIONAL_DERIVATIVE "PROPORTIONAL_DERIVATIVE"
66 #define COMPUTED_TORQUE_METHOD "COMPUTED_TORQUE_METHOD"
67 #define RESOLVED_RATE_ACCELERATION "RESOLVED_RATE_ACCELERATION"
68 #define IMPEDANCE "IMPEDANCE"
69 
101 {
102 public:
103  Control_Select();
104  Control_Select(const std::string & filename);
105  int get_dof();
106  void set_control(const std::string & filename);
111 
112  short type,
113  space_type;
114  std::string ControllerName;
115 private:
116  int dof;
117 };
118 
119 #ifdef use_namespace
120 }
121 #endif
122 
123 #endif
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
Computer torque method controller class.
Definition: controller.h:220
Resolved rate acceleration controller class.
Definition: controller.h:171
Impedance impedance
std::string ControllerName
Controller name.
Proportional_Derivative pd
Impedance controller class.
Definition: controller.h:91
Computed_torque_method ctm
static const char header_Control_Select_rcsid[]
RCS/CVS version.
Resolved_acc rra
Header file for controller class definitions.
Select controller class.
short type
Type of controller: PD, CTM,...
Proportional derivative controller class.
Definition: controller.h:252
int dof
Degree of freedom.


kni
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:44