#include <robot_layer.h>
Public Types | |
typedef boost::function < double *(const std::string &) > | get_var_func_type |
Public Member Functions | |
double | evaluate () |
void | reset () |
UnitConverter (const std::string &expression, get_var_func_type var_func=get_var_func_type()) | |
Private Types | |
typedef boost::shared_ptr< double > | variable_ptr |
typedef std::list< variable_ptr > | variable_ptr_list |
Static Private Member Functions | |
static double | avg (const double *vals, int num) |
static double * | createVariable (const char *name, void *userdata) |
static double | deg2rad (double d) |
static double | norm (double val, double min, double max) |
static double | rad2deg (double r) |
static double | smooth (double val, double old_val, double alpha) |
Private Attributes | |
mu::Parser | parser_ |
get_var_func_type | var_func_ |
variable_ptr_list | var_list_ |
Definition at line 75 of file robot_layer.h.
typedef boost::function<double * (const std::string &) > UnitConverter::get_var_func_type |
Definition at line 77 of file robot_layer.h.
typedef boost::shared_ptr<double> UnitConverter::variable_ptr [private] |
Definition at line 83 of file robot_layer.h.
typedef std::list<variable_ptr> UnitConverter::variable_ptr_list [private] |
Definition at line 84 of file robot_layer.h.
UnitConverter::UnitConverter | ( | const std::string & | expression, |
get_var_func_type | var_func = get_var_func_type() |
||
) |
Definition at line 18 of file robot_layer.cpp.
static double UnitConverter::avg | ( | const double * | vals, |
int | num | ||
) | [inline, static, private] |
Definition at line 108 of file robot_layer.h.
double * UnitConverter::createVariable | ( | const char * | name, |
void * | userdata | ||
) | [static, private] |
Definition at line 41 of file robot_layer.cpp.
static double UnitConverter::deg2rad | ( | double | d | ) | [inline, static, private] |
Definition at line 95 of file robot_layer.h.
double UnitConverter::evaluate | ( | ) | [inline] |
Definition at line 81 of file robot_layer.h.
static double UnitConverter::norm | ( | double | val, |
double | min, | ||
double | max | ||
) | [inline, static, private] |
Definition at line 98 of file robot_layer.h.
static double UnitConverter::rad2deg | ( | double | r | ) | [inline, static, private] |
Definition at line 92 of file robot_layer.h.
void UnitConverter::reset | ( | ) |
Definition at line 35 of file robot_layer.cpp.
static double UnitConverter::smooth | ( | double | val, |
double | old_val, | ||
double | alpha | ||
) | [inline, static, private] |
Definition at line 103 of file robot_layer.h.
mu::Parser UnitConverter::parser_ [private] |
Definition at line 90 of file robot_layer.h.
get_var_func_type UnitConverter::var_func_ [private] |
Definition at line 88 of file robot_layer.h.
variable_ptr_list UnitConverter::var_list_ [private] |
Definition at line 87 of file robot_layer.h.