Autoware.Auto
autoware::motion::control::trajectory_follower::SplineInterpolate Class Reference

Class for spline interpolation. More...

#include <interpolate.hpp>

Public Member Functions

 SplineInterpolate ()=default
 default constructor More...
 
 SplineInterpolate (const std::vector< float64_t > &x)
 constructor from a vector of values More...
 
void generateSpline (const std::vector< float64_t > &x)
 initialize the spline for the given vector of values More...
 
float64_t getValue (const float64_t &s)
 linearly interpolate the given values assuming a base indexing and a new desired indexing More...
 
bool8_t interpolate (const std::vector< float64_t > &base_index, const std::vector< float64_t > &base_value, const std::vector< float64_t > &return_index, std::vector< float64_t > &return_value)
 linearly interpolate the given values assuming a base indexing and a new desired indexing More...
 
void getValueVector (const std::vector< float64_t > &s_v, std::vector< float64_t > &value_v)
 

Detailed Description

Class for spline interpolation.

Constructor & Destructor Documentation

◆ SplineInterpolate() [1/2]

autoware::motion::control::trajectory_follower::SplineInterpolate::SplineInterpolate ( )
default

default constructor

◆ SplineInterpolate() [2/2]

autoware::motion::control::trajectory_follower::SplineInterpolate::SplineInterpolate ( const std::vector< float64_t > &  x)
explicit

constructor from a vector of values

Parameters
[in]xvector of values

Member Function Documentation

◆ generateSpline()

void autoware::motion::control::trajectory_follower::SplineInterpolate::generateSpline ( const std::vector< float64_t > &  x)

initialize the spline for the given vector of values

Parameters
[in]xvector of values

◆ getValue()

float64_t autoware::motion::control::trajectory_follower::SplineInterpolate::getValue ( const float64_t &  s)

linearly interpolate the given values assuming a base indexing and a new desired indexing

Parameters
[in]sdesired index
Returns
corresponding value

◆ getValueVector()

void autoware::motion::control::trajectory_follower::SplineInterpolate::getValueVector ( const std::vector< float64_t > &  s_v,
std::vector< float64_t > &  value_v 
)

◆ interpolate()

bool8_t autoware::motion::control::trajectory_follower::SplineInterpolate::interpolate ( const std::vector< float64_t > &  base_index,
const std::vector< float64_t > &  base_value,
const std::vector< float64_t > &  return_index,
std::vector< float64_t > &  return_value 
)

linearly interpolate the given values assuming a base indexing and a new desired indexing

Parameters
[in]base_indexindexes for each base value
[in]base_valuevalues for each base index
[in]return_indexdesired interpolated indexes
[out]return_valueresulting interpolated values

The documentation for this class was generated from the following files: