Spline< 2, double > reparameterize_spline(const SplineLike auto &spline, const auto &vel_min, const auto &vel_max, const auto &acc_min, const auto &acc_max, const double start_vel=1, const double end_vel=std::numeric_limits< double >::infinity(), const std::size_t N=100)
Reparameterize a spline to satisfy velocity and acceleration constraints.