19 #ifndef TRICYCLE_CONTROLLER__TRACTION_LIMITER_HPP_
20 #define TRICYCLE_CONTROLLER__TRACTION_LIMITER_HPP_
24 namespace tricycle_controller
52 double min_velocity = NAN,
double max_velocity = NAN,
double min_acceleration = NAN,
53 double max_acceleration = NAN,
double min_deceleration = NAN,
double max_deceleration = NAN,
54 double min_jerk = NAN,
double max_jerk = NAN);
64 double limit(
double & v,
double v0,
double v1,
double dt);
91 double limit_jerk(
double & v,
double v0,
double v1,
double dt);
99 double min_acceleration_;
100 double max_acceleration_;
103 double min_deceleration_;
104 double max_deceleration_;
Definition: traction_limiter.hpp:27
double limit(double &v, double v0, double v1, double dt)
Limit the velocity and acceleration.
Definition: traction_limiter.cpp:97
TractionLimiter(double min_velocity=NAN, double max_velocity=NAN, double min_acceleration=NAN, double max_acceleration=NAN, double min_deceleration=NAN, double max_deceleration=NAN, double min_jerk=NAN, double max_jerk=NAN)
Constructor.
Definition: traction_limiter.cpp:27
double limit_velocity(double &v)
Limit the velocity.
Definition: traction_limiter.cpp:109
double limit_jerk(double &v, double v0, double v1, double dt)
Limit the jerk.
Definition: traction_limiter.cpp:142
double limit_acceleration(double &v, double v0, double dt)
Limit the acceleration.
Definition: traction_limiter.cpp:119