#include <speed_limiter.h>
Public Member Functions | |
void | limit (double &v, double v0, double dt) |
Limit the velocity and acceleration. | |
void | limit_acceleration (double &v, double v0, double dt) |
Limit the acceleration. | |
void | limit_velocity (double &v) |
Limit the velocity. | |
SpeedLimiter (bool has_velocity_limits=false, bool has_acceleration_limits=false, double min_velocity=0.0, double max_velocity=0.0, double min_acceleration=0.0, double max_acceleration=0.0) | |
Constructor. | |
Public Attributes | |
bool | has_acceleration_limits |
bool | has_velocity_limits |
double | max_acceleration |
double | max_velocity |
double | min_acceleration |
double | min_velocity |
Definition at line 45 of file speed_limiter.h.
mecanum_drive_controller::SpeedLimiter::SpeedLimiter | ( | bool | has_velocity_limits = false , |
bool | has_acceleration_limits = false , |
||
double | min_velocity = 0.0 , |
||
double | max_velocity = 0.0 , |
||
double | min_acceleration = 0.0 , |
||
double | max_acceleration = 0.0 |
||
) |
Constructor.
[in] | has_velocity_limits | if true, applies velocity limits |
[in] | has_acceleration_limits | if true, applies acceleration limits |
[in] | min_velocity | Minimum velocity [m/s], usually <= 0 |
[in] | max_velocity | Maximum velocity [m/s], usually >= 0 |
[in] | min_acceleration | Minimum acceleration [m/s^2], usually <= 0 |
[in] | max_acceleration | Maximum acceleration [m/s^2], usually >= 0 |
Definition at line 52 of file speed_limiter.cpp.
void mecanum_drive_controller::SpeedLimiter::limit | ( | double & | v, |
double | v0, | ||
double | dt | ||
) |
Limit the velocity and acceleration.
[in,out] | v | Velocity [m/s] |
[in] | v0 | Previous velocity [m/s] |
[in] | dt | Time step [s] |
Definition at line 69 of file speed_limiter.cpp.
void mecanum_drive_controller::SpeedLimiter::limit_acceleration | ( | double & | v, |
double | v0, | ||
double | dt | ||
) |
Limit the acceleration.
[in,out] | v | Velocity [m/s] |
[in] | v0 | Previous velocity [m/s] |
[in] | dt | Time step [s] |
Definition at line 83 of file speed_limiter.cpp.
void mecanum_drive_controller::SpeedLimiter::limit_velocity | ( | double & | v | ) |
Limit the velocity.
[in,out] | v | Velocity [m/s] |
Definition at line 75 of file speed_limiter.cpp.
Definition at line 92 of file speed_limiter.h.
Definition at line 91 of file speed_limiter.h.
Definition at line 100 of file speed_limiter.h.
Definition at line 96 of file speed_limiter.h.
Definition at line 99 of file speed_limiter.h.
Definition at line 95 of file speed_limiter.h.