#include <throttle.H>
Public Member Functions | |
base_throttle_t (const conf_t &conf) | |
virtual | ~base_throttle_t () |
virtual bool | read_config (const conf_t &conf) |
virtual void | init () |
virtual void | throttle (double tstamp, steering_data_t &steering, sog_data_t const &sd, double desired_speed, double desired_speed_rate)=0 |
Protected Attributes | |
bool | m_debug_throttle |
double | m_min_steering_to_consider_as_turn |
double | m_max_straight_throttle |
double | m_max_turn_throttle |
double | m_speed_error_threshold |
double | m_throttle |
cajun::base_throttle_t::base_throttle_t | ( | const conf_t & | conf | ) | [inline] |
References init(), and read_config().
virtual cajun::base_throttle_t::~base_throttle_t | ( | ) | [inline, virtual] |
virtual void cajun::base_throttle_t::init | ( | ) | [inline, virtual] |
Reimplemented in cajun::throttle_v1_t, cajun::throttle_v2_t, and cajun::throttle_v3_t.
References m_throttle.
Referenced by base_throttle_t(), and cajun::drive_t::update_action_status().
virtual bool cajun::base_throttle_t::read_config | ( | const conf_t & | conf | ) | [inline, virtual] |
Reimplemented in cajun::throttle_v1_t, cajun::throttle_v2_t, and cajun::throttle_v3_t.
References m_debug_throttle, m_max_straight_throttle, m_max_turn_throttle, m_min_steering_to_consider_as_turn, and m_speed_error_threshold.
Referenced by base_throttle_t().
virtual void cajun::base_throttle_t::throttle | ( | double | tstamp, | |
steering_data_t & | steering, | |||
sog_data_t const & | sd, | |||
double | desired_speed, | |||
double | desired_speed_rate | |||
) | [pure virtual] |
Implemented in cajun::throttle_v1_t, cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by cajun::drive_t::drive_the_bot().
bool cajun::base_throttle_t::m_debug_throttle [protected] |
Referenced by read_config(), cajun::throttle_v2_t::throttle(), and cajun::throttle_v1_t::throttle().
double cajun::base_throttle_t::m_max_straight_throttle [protected] |
Reimplemented in cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by read_config(), and cajun::throttle_v1_t::throttle().
double cajun::base_throttle_t::m_max_turn_throttle [protected] |
Reimplemented in cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by read_config(), and cajun::throttle_v1_t::throttle().
double cajun::base_throttle_t::m_min_steering_to_consider_as_turn [protected] |
Reimplemented in cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by read_config(), and cajun::throttle_v1_t::throttle().
double cajun::base_throttle_t::m_speed_error_threshold [protected] |
Reimplemented in cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by read_config(), and cajun::throttle_v1_t::throttle().
double cajun::base_throttle_t::m_throttle [protected] |
Reimplemented in cajun::throttle_v2_t, and cajun::throttle_v3_t.
Referenced by init(), and cajun::throttle_v1_t::throttle().