27#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
48T
lerp(
const T &x0,
const double t0,
const T &x1,
const double t1,
50 if (std::abs(t1 - t0) <= 1.0e-6) {
51 AERROR <<
"input time difference is too small";
54 const double r = (t - t0) / (t1 - t0);
55 const T x = x0 + r * (x1 - x0);
70double slerp(
const double a0,
const double t0,
const double a1,
const double t1,
74 const SLPoint &p1,
const double w);
T lerp(const T &x0, const double t0, const T &x1, const double t1, const double t)
Linear interpolation between two points of type T.
double slerp(const double a0, const double t0, const double a1, const double t1, const double t)
Spherical linear interpolation between two angles.