#include <evarobot_controller.h>
Public Member Functions | |
PIDController () | |
PIDController (double d_proportional_constant, double d_integral_constant, double d_derivative_constant, double _d_max_vel, string _str_name) | |
void | ProduceDiagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat) |
void | Reset () |
float | RunController (float f_desired, float f_measured) |
void | UpdateParams (double d_proportional_constant, double d_integral_constant, double d_derivative_constant) |
~PIDController () | |
Private Attributes | |
double | d_derivative_constant |
double | d_derivative_error |
double | d_integral_constant |
double | d_integral_error |
double | d_max_vel |
double | d_pre_error |
double | d_proportional_constant |
double | d_proportional_error |
ros::Duration | dur_time |
ros::Time | read_time |
string | str_name |
Definition at line 48 of file evarobot_controller.h.
Definition at line 17 of file evarobot_controller.cpp.
PIDController::PIDController | ( | double | d_proportional_constant, |
double | d_integral_constant, | ||
double | d_derivative_constant, | ||
double | _d_max_vel, | ||
string | _str_name | ||
) |
Definition at line 30 of file evarobot_controller.cpp.
Definition at line 45 of file evarobot_controller.cpp.
Definition at line 97 of file evarobot_controller.cpp.
void PIDController::Reset | ( | ) |
Definition at line 8 of file evarobot_controller.cpp.
float PIDController::RunController | ( | float | f_desired, |
float | f_measured | ||
) |
Definition at line 47 of file evarobot_controller.cpp.
void PIDController::UpdateParams | ( | double | d_proportional_constant, |
double | d_integral_constant, | ||
double | d_derivative_constant | ||
) |
Definition at line 88 of file evarobot_controller.cpp.
double PIDController::d_derivative_constant [private] |
Definition at line 76 of file evarobot_controller.h.
double PIDController::d_derivative_error [private] |
Definition at line 71 of file evarobot_controller.h.
double PIDController::d_integral_constant [private] |
Definition at line 75 of file evarobot_controller.h.
double PIDController::d_integral_error [private] |
Definition at line 70 of file evarobot_controller.h.
double PIDController::d_max_vel [private] |
Definition at line 81 of file evarobot_controller.h.
double PIDController::d_pre_error [private] |
Definition at line 73 of file evarobot_controller.h.
double PIDController::d_proportional_constant [private] |
Definition at line 77 of file evarobot_controller.h.
double PIDController::d_proportional_error [private] |
Definition at line 72 of file evarobot_controller.h.
ros::Duration PIDController::dur_time [private] |
Definition at line 84 of file evarobot_controller.h.
ros::Time PIDController::read_time [private] |
Definition at line 83 of file evarobot_controller.h.
string PIDController::str_name [private] |
Definition at line 79 of file evarobot_controller.h.