Apollo  6.0
Open source self driving car software
Namespaces | Functions
linear_interpolation.h File Reference

Linear interpolation functions. More...

#include <cmath>
#include "cyber/common/log.h"
#include "modules/common/proto/pnc_point.pb.h"
Include dependency graph for linear_interpolation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 apollo::common::math
 apollo::common::math
 
 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::common
 apollo::common
 

Functions

template<typename T >
apollo::common::math::lerp (const T &x0, const double t0, const T &x1, const double t1, const double t)
 Linear interpolation between two points of type T. More...
 
double apollo::common::math::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, M_PI). More...
 
SLPoint apollo::common::math::InterpolateUsingLinearApproximation (const SLPoint &p0, const SLPoint &p1, const double w)
 
PathPoint apollo::common::math::InterpolateUsingLinearApproximation (const PathPoint &p0, const PathPoint &p1, const double s)
 
TrajectoryPoint apollo::common::math::InterpolateUsingLinearApproximation (const TrajectoryPoint &tp0, const TrajectoryPoint &tp1, const double t)
 

Detailed Description

Linear interpolation functions.