cajun::linear_interpolator_t Class Reference

#include <linear_interpolator.H>

Inheritance diagram for cajun::linear_interpolator_t:
cajun::base_path_interpolator_t

List of all members.

Public Member Functions

 linear_interpolator_t (const conf_t &conf)
void interpolate (path_data_t const &input_path, uniform_path_t &output_path)
 Interpolate 'input_path' and to generate 'output_path'.

Private Member Functions

bool read_conf (const conf_t &conf)
 Read parameters from config file.
void copy_wp (const path_wp_t *source_wp, uniform_path_t &output_path)
 Copies contents from source_wp to des_wp.
void interpolate_wp (const path_wp_t *start_wp, const path_wp_t *end_wp, uniform_path_t &output_path)
 Append interpolated point between start_wp and end_wp, excluding both start_wp and end_wp.
void add_wp_at_dis (const path_wp_t *start_wp, const path_wp_t *end_wp, double dis, uniform_path_t &output_path)
 Adds waypiont at distance 'dis' behind 'end_wp'.

Private Attributes

double m_interp_dis

Constructor & Destructor Documentation

linear_interpolator_t::linear_interpolator_t ( const conf_t &  conf  ) 

References read_conf().


Member Function Documentation

void linear_interpolator_t::add_wp_at_dis ( const path_wp_t *  start_wp,
const path_wp_t *  end_wp,
double  dis,
uniform_path_t output_path 
) [private]

Adds waypiont at distance 'dis' behind 'end_wp'.

References cajun::waypoint_t::max_speed, cajun::waypoint_t::min_speed, cajun::waypoint_t::x, and cajun::waypoint_t::y.

Referenced by interpolate_wp().

void linear_interpolator_t::copy_wp ( const path_wp_t *  source_wp,
uniform_path_t output_path 
) [private]

Copies contents from source_wp to des_wp.

References cajun::waypoint_t::max_speed, cajun::waypoint_t::min_speed, cajun::waypoint_t::x, and cajun::waypoint_t::y.

Referenced by interpolate().

void linear_interpolator_t::interpolate ( path_data_t const &  input_path,
uniform_path_t output_path 
) [virtual]

Interpolate 'input_path' and to generate 'output_path'.

Implements cajun::base_path_interpolator_t.

References copy_wp(), and interpolate_wp().

void linear_interpolator_t::interpolate_wp ( const path_wp_t *  start_wp,
const path_wp_t *  end_wp,
uniform_path_t output_path 
) [private]

Append interpolated point between start_wp and end_wp, excluding both start_wp and end_wp.

References add_wp_at_dis(), and m_interp_dis.

Referenced by interpolate().

bool linear_interpolator_t::read_conf ( const conf_t &  conf  )  [private]

Read parameters from config file.

References m_interp_dis.

Referenced by linear_interpolator_t().


Member Data Documentation

Referenced by interpolate_wp(), and read_conf().


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

Generated on Fri Apr 9 10:45:16 2010 for UCSteeringController by  doxygen 1.6.1