Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
rtc
TorqueController
TwoDofControllerPDModel.h
Go to the documentation of this file.
1
// -*- C++ -*-
10
#ifndef TWO_DOF_CONTROLLER_PDMODEL_H
11
#define TWO_DOF_CONTROLLER_PDMODEL_H
12
13
// </rtc-template>
14
15
#include "../Stabilizer/TwoDofController.h"
16
#include "
Convolution.h
"
17
#include <vector>
18
19
class
TwoDofControllerPDModel
:
public
TwoDofControllerInterface
{
20
public
:
21
class
TwoDofControllerPDModelParam
{
22
public
:
23
TwoDofControllerPDModelParam
() {
24
ke
=
kd
=
tc
=
dt
= 0.0;
// set default param
25
}
26
~TwoDofControllerPDModelParam
() {
27
}
28
static
int
getControllerParamNum
() {
29
return
3;
30
}
31
double
ke
;
// Pgain
32
double
kd
;
// Dgain
33
double
tc
;
// time constant
34
double
dt
;
// control cycle (not controller but system parameter)
35
};
36
TwoDofControllerPDModel
();
37
TwoDofControllerPDModel
(
TwoDofControllerPDModelParam
&_param,
unsigned
int
_range = 0);
38
~TwoDofControllerPDModel
();
39
void
setup
();
40
void
setup
(
TwoDofControllerPDModelParam
&_param,
unsigned
int
_range = 0);
41
void
reset
();
42
double
update
(
double
_x,
double
_xd);
43
bool
getParameter
();
44
bool
getParameter
(
TwoDofControllerPDModelParam
&_p);
45
private
:
46
TwoDofControllerPDModelParam
param
;
47
double
current_time
;
48
std::vector<Convolution>
convolutions
;
49
};
50
51
#endif // TWO_DOF_CONTROLLER_PDMODEL_H
TwoDofControllerPDModel::TwoDofControllerPDModelParam::TwoDofControllerPDModelParam
TwoDofControllerPDModelParam()
Definition:
TwoDofControllerPDModel.h:23
TwoDofControllerPDModel::TwoDofControllerPDModel
TwoDofControllerPDModel()
Definition:
TwoDofControllerPDModel.cpp:17
TwoDofControllerPDModel::TwoDofControllerPDModelParam::ke
double ke
Definition:
TwoDofControllerPDModel.h:31
TwoDofControllerPDModel::setup
void setup()
Definition:
TwoDofControllerPDModel.cpp:40
TwoDofControllerPDModel::~TwoDofControllerPDModel
~TwoDofControllerPDModel()
Definition:
TwoDofControllerPDModel.cpp:37
TwoDofControllerPDModel::TwoDofControllerPDModelParam::dt
double dt
Definition:
TwoDofControllerPDModel.h:34
TwoDofControllerPDModel::TwoDofControllerPDModelParam::getControllerParamNum
static int getControllerParamNum()
Definition:
TwoDofControllerPDModel.h:28
TwoDofControllerPDModel
Definition:
TwoDofControllerPDModel.h:19
TwoDofControllerPDModel::current_time
double current_time
Definition:
TwoDofControllerPDModel.h:47
TwoDofControllerInterface
Definition:
TwoDofController.h:19
Convolution.h
Convolution Calculator.
TwoDofControllerPDModel::reset
void reset()
Definition:
TwoDofControllerPDModel.cpp:67
TwoDofControllerPDModel::convolutions
std::vector< Convolution > convolutions
Definition:
TwoDofControllerPDModel.h:48
TwoDofControllerPDModel::param
TwoDofControllerPDModelParam param
Definition:
TwoDofControllerPDModel.h:46
TwoDofControllerPDModel::getParameter
bool getParameter()
Definition:
TwoDofControllerPDModel.cpp:55
TwoDofControllerPDModel::update
double update(double _x, double _xd)
Definition:
TwoDofControllerPDModel.cpp:74
TwoDofControllerPDModel::TwoDofControllerPDModelParam::tc
double tc
Definition:
TwoDofControllerPDModel.h:33
TwoDofControllerPDModel::TwoDofControllerPDModelParam::kd
double kd
Definition:
TwoDofControllerPDModel.h:32
TwoDofControllerPDModel::TwoDofControllerPDModelParam
Definition:
TwoDofControllerPDModel.h:21
TwoDofControllerPDModel::TwoDofControllerPDModelParam::~TwoDofControllerPDModelParam
~TwoDofControllerPDModelParam()
Definition:
TwoDofControllerPDModel.h:26
hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51