Public Types | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes
UnitConverter Class Reference

#include <robot_layer.h>

List of all members.

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_ptrvariable_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_

Detailed Description

Definition at line 75 of file robot_layer.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.


Member Data Documentation

mu::Parser UnitConverter::parser_ [private]

Definition at line 90 of file robot_layer.h.

Definition at line 88 of file robot_layer.h.

Definition at line 87 of file robot_layer.h.


The documentation for this class was generated from the following files:


canopen_motor_node
Author(s): Mathias Lüdtke
autogenerated on Thu Jun 6 2019 20:44:07