#include <approx_esc_1d.h>
Public Member Functions | |
ApproxESC1D () | |
ApproxESC1D (int data_size, int poly_degree, double k_grad, double init_vel, int sampling=1) | |
inputType | getInputType () |
outputType | getOutputType () |
void | init (int data_size, int poly_degree, double k_grad, double init_vel, int sampling=1) |
std::vector< double > | monitor () |
std::vector< std::string > | monitorNames () |
void | reset () |
std::vector< double > | step (std::vector< double > state, double obj_val) |
Protected Attributes | |
int | data_size_ |
double | init_vel_ |
bool | initialized_ |
double | k_grad_ |
Eigen::VectorXf | obj_vals_ |
int | poly_degree_ |
int | ptr_ |
int | sample_ |
int | sampling_ |
double | state_curr_ |
Eigen::VectorXf | states_ |
double | vel_ref_ |
Definition at line 22 of file approx_esc_1d.h.
Definition at line 18 of file approx_esc_1d.cpp.
ApproxESC1D::ApproxESC1D | ( | int | data_size, |
int | poly_degree, | ||
double | k_grad, | ||
double | init_vel, | ||
int | sampling = 1 |
||
) |
Definition at line 28 of file approx_esc_1d.cpp.
ESC::inputType ApproxESC1D::getInputType | ( | ) | [virtual] |
Implements ESC.
Definition at line 100 of file approx_esc_1d.cpp.
ESC::outputType ApproxESC1D::getOutputType | ( | ) | [virtual] |
Implements ESC.
Definition at line 103 of file approx_esc_1d.cpp.
void ApproxESC1D::init | ( | int | data_size, |
int | poly_degree, | ||
double | k_grad, | ||
double | init_vel, | ||
int | sampling = 1 |
||
) |
Definition at line 32 of file approx_esc_1d.cpp.
std::vector< double > ApproxESC1D::monitor | ( | ) | [virtual] |
Reimplemented from ESC.
Definition at line 107 of file approx_esc_1d.cpp.
std::vector< std::string > ApproxESC1D::monitorNames | ( | ) | [virtual] |
Reimplemented from ESC.
Definition at line 110 of file approx_esc_1d.cpp.
void ApproxESC1D::reset | ( | ) | [virtual] |
Implements ESC.
Definition at line 114 of file approx_esc_1d.cpp.
std::vector< double > ApproxESC1D::step | ( | std::vector< double > | state, |
double | obj_val | ||
) | [virtual] |
Reimplemented from ESC.
Definition at line 45 of file approx_esc_1d.cpp.
int ApproxESC1D::data_size_ [protected] |
Definition at line 24 of file approx_esc_1d.h.
double ApproxESC1D::init_vel_ [protected] |
Definition at line 25 of file approx_esc_1d.h.
bool ApproxESC1D::initialized_ [protected] |
Definition at line 26 of file approx_esc_1d.h.
double ApproxESC1D::k_grad_ [protected] |
Definition at line 25 of file approx_esc_1d.h.
Eigen::VectorXf ApproxESC1D::obj_vals_ [protected] |
Definition at line 29 of file approx_esc_1d.h.
int ApproxESC1D::poly_degree_ [protected] |
Definition at line 24 of file approx_esc_1d.h.
int ApproxESC1D::ptr_ [protected] |
Definition at line 27 of file approx_esc_1d.h.
int ApproxESC1D::sample_ [protected] |
Definition at line 27 of file approx_esc_1d.h.
int ApproxESC1D::sampling_ [protected] |
Definition at line 24 of file approx_esc_1d.h.
double ApproxESC1D::state_curr_ [protected] |
Definition at line 25 of file approx_esc_1d.h.
Eigen::VectorXf ApproxESC1D::states_ [protected] |
Definition at line 28 of file approx_esc_1d.h.
double ApproxESC1D::vel_ref_ [protected] |
Definition at line 25 of file approx_esc_1d.h.