humoto
|
Two Point Mass Model.
This class generates matrices of the following systems:
1) simple: c(k+1) = A c(k) + B cjerk(k+1) p(k) = D c(k)
2) final: c(k+1) = A c(k) + Bs us(k) + Bd RS(k+1) ud(k) p(k) = Dps c(k) cjerk(k) = Dcjerk c(k) + Escjerk us(k) + Edcjerk RS(k+1) ud(k)
Definition at line 29 of file two_point_mass_model.h.
#include <two_point_mass_model.h>
Public Member Functions | |
TwoPointMassModel () | |
Constructor. More... | |
etools::Matrix3 | getAd3 (const double T) const |
Create intermediate Ad3 matrix. More... | |
etools::Matrix3 | getAs3 (const double T) const |
Create intermediate As3 matrix. More... | |
etools::Vector3 | getBd3 (const double T) const |
Create intermediate Bd3 matrix. More... | |
etools::Vector3 | getBs3 (const double T) const |
Create intermediate Bs3 matrix. More... | |
etools::Matrix1x3 | getDjs3 (const double T) const |
Create intermediate Dc6 matrix of final model. More... | |
etools::Matrix1x3 | getDpd3 (const double body_height, const double base_mass, const double body_mass) const |
Create Dpd3 matrix. More... | |
etools::Matrix1x3 | getDps3 (const double base_height, const double base_mass, const double body_mass) const |
Create Dps3 matrix. More... | |
double | getEjs3 (const double T) const |
Create intermediate Esc6 matrix of final model. More... | |
Public Attributes | |
const std::size_t | Ns_ |
const std::size_t | Nu_ |
Static Protected Member Functions | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAAcc (const double T) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAJerk (const double T) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAPos (const double T) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAsAcc (const double T, const double Ts) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAsPos (const double T, const double Ts) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAsVel (const double T, const double Ts) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getAVel (const double T) |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBAcc (const double T) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBJerk (const double T) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBPos (const double T) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBsAcc (const double T, const double Ts) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBsPos (const double T, const double Ts) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBsVel (const double T, const double Ts) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getBVel (const double T) |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getDAcc (const double T) |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getDPos (const double T) |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getDVel (const double T) |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getEAcc (const double T) |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getEPos (const double T) |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
template<std::size_t t_number_of_integrators> | |
static EIGENTOOLS_CONSTANT_SIZE_MATRIX | getEVel (const double T) |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position]. More... | |
|
inline |
Constructor.
Definition at line 42 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 67 of file triple_integrator.h.
|
inline |
Create intermediate Ad3 matrix.
[in] | T | timestep |
Definition at line 66 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 53 of file triple_integrator.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 93 of file triple_integrator.h.
|
inline |
Create intermediate As3 matrix.
[in] | T | timestep |
Definition at line 54 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 118 of file triple_integrator.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 146 of file triple_integrator.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 132 of file triple_integrator.h.
|
inlinestaticinherited |
Create A matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 80 of file triple_integrator.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 188 of file triple_integrator.h.
|
inline |
Create intermediate Bd3 matrix.
[in] | T | timestep |
Definition at line 90 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 174 of file triple_integrator.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 214 of file triple_integrator.h.
|
inline |
Create intermediate Bs3 matrix.
[in] | T | timestep |
Definition at line 78 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 238 of file triple_integrator.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 266 of file triple_integrator.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
[in] | Ts | subsampling time |
Definition at line 252 of file triple_integrator.h.
|
inlinestaticinherited |
Create B matrix of the model, suffix of the function name indicates the type of control [jerk, acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 201 of file triple_integrator.h.
|
inlinestaticinherited |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 294 of file triple_integrator.h.
|
inline |
Create intermediate Dc6 matrix of final model.
[in] | T | timestep |
Definition at line 142 of file two_point_mass_model.h.
|
inline |
Create Dpd3 matrix.
[in] | body_height | CoM of body height |
[in] | base_mass | base mass |
[in] | body_mass | body mass |
Definition at line 123 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 316 of file triple_integrator.h.
|
inline |
Create Dps3 matrix.
[in] | base_height | CoM of base height |
[in] | base_mass | base mass |
[in] | body_mass | body mass |
Definition at line 104 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create D matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 305 of file triple_integrator.h.
|
inlinestaticinherited |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 340 of file triple_integrator.h.
Create intermediate Esc6 matrix of final model.
[in] | T | timestep |
Definition at line 155 of file two_point_mass_model.h.
|
inlinestaticinherited |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 362 of file triple_integrator.h.
|
inlinestaticinherited |
Create E matrix of the model, suffix of the function name indicates the type of control [acc = acceleration, vel = velocity, pos = position].
t_number_of_integrators | number of integrators in the system |
[in] | T | sampling time |
Definition at line 351 of file triple_integrator.h.
const std::size_t humoto::pepper_mpc::TwoPointMassModel::Ns_ |
Definition at line 33 of file two_point_mass_model.h.
const std::size_t humoto::pepper_mpc::TwoPointMassModel::Nu_ |
Definition at line 35 of file two_point_mass_model.h.