Go to the documentation of this file.
31 #ifndef TRAJECTORY_TRACKER_BASIC_CONTROL_H
32 #define TRAJECTORY_TRACKER_BASIC_CONTROL_H
40 return -std::copysign(1.0,
angle) * std::sqrt(std::abs(2 *
angle * acc));
43 inline float clip(
const float v,
const float max)
73 const float v,
const float vel,
const float acc,
const float dt)
78 float v,
const float vel,
const float acc,
const float dt)
87 if (!std::isfinite(v))
93 inline float get()
const
104 #endif // TRAJECTORY_TRACKER_BASIC_CONTROL_H
float increment(const float v, const float vel, const float acc, const float dt)
float set(float v, const float vel, const float acc, const float dt)
float timeOptimalControl(const float angle, const float acc)
float clip(const float v, const float max)
TF2SIMD_FORCE_INLINE tf2Scalar angle(const Quaternion &q1, const Quaternion &q2)
float angleNormalized(float ang)