22#include <unsupported/Eigen/Splines>
37 void setPoints(
const std::vector<lanelet::BasicPoint2d>& points)
override;
38 lanelet::BasicPoint2d
operator()(
double t)
const override;
39 lanelet::BasicPoint2d
first_deriv(
double t)
const override;
40 lanelet::BasicPoint2d
second_deriv(
double t)
const override;
Realization of SplineI that uses the Eigen::Splines library for interpolation.
void setPoints(const std::vector< lanelet::BasicPoint2d > &points) override
Set key points which the spline will interpolate between.
lanelet::BasicPoint2d first_deriv(double t) const override
Get the BasicPoint2d representing the first_deriv along the curve at t-th step.
lanelet::BasicPoint2d second_deriv(double t) const override
Get the BasicPoint2d representing the first_deriv along the curve at t-th step.
lanelet::BasicPoint2d operator()(double t) const override
Get the BasicPoint2d coordinate along the curve at t-th step.
Interface to a spline interpolator that can be used to smoothly interpolate between points.
Eigen::Spline< double, 2 > Spline2d