27 #include "modules/common/proto/pnc_point.pb.h" 48 T
lerp(
const T &x0,
const double t0,
const T &x1,
const double t1,
51 AERROR <<
"input time difference is too small";
54 const double r = (t - t0) / (t1 - t0);
55 const T x = x0 + r * (x1 - x0);
70 double slerp(
const double a0,
const double t0,
const double a1,
const double t1,
74 const SLPoint &p1,
const double w);
81 const TrajectoryPoint &tp1,
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
SLPoint InterpolateUsingLinearApproximation(const SLPoint &p0, const SLPoint &p1, const double w)
T abs(const T &x)
Definition: misc.h:48
double slerp(const double a0, const double t0, const double a1, const double t1, const double t)
Spherical linear interpolation between two angles. The two angles are within range [-M_PI...
#define AERROR
Definition: log.h:44
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.
Definition: linear_interpolation.h:48