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