Drake
splineGeneration.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "SplineInformation.h"
5 #include <stdexcept>
6 #include "drake/drakeSplineGeneration_export.h"
7 
8 class ConstraintMatrixSingularError : public std::runtime_error {
9  public:
11  : runtime_error("Constraint matrix is singular!"){}
12 };
13 
14 DRAKESPLINEGENERATION_EXPORT PiecewisePolynomial<double> generateSpline(
15  const SplineInformation& spline_information);
16 
17 DRAKESPLINEGENERATION_EXPORT PiecewisePolynomial<double> nWaypointCubicSpline(
18  const std::vector<double>& segment_times, double x0, double xd0, double xf,
19  double xdf, const Eigen::Ref<const Eigen::VectorXd>& xi);
DRAKESPLINEGENERATION_EXPORT PiecewisePolynomial< double > generateSpline(const SplineInformation &spline_information)
Definition: splineGeneration.cpp:31
ConstraintMatrixSingularError()
Definition: splineGeneration.h:10
Definition: SplineInformation.h:9
Definition: splineGeneration.h:8
DRAKESPLINEGENERATION_EXPORT PiecewisePolynomial< double > nWaypointCubicSpline(const std::vector< double > &segment_times, double x0, double xd0, double xf, double xdf, const Eigen::Ref< const Eigen::VectorXd > &xi)