|
TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
|
#include <trajopt/spline/spline.hpp>
Classes | |
| struct | ControlVector |
Public Types | |
| using | PoseWithCurvature = std::pair<Pose2d, double> |
| Pose2d with curvature. | |
Public Member Functions | |
| std::optional< PoseWithCurvature > | get_point (double t) const |
| virtual const Eigen::Matrix< double, 6, Degree+1 > & | coefficients () const =0 |
| virtual const ControlVector & | get_initial_control_vector () const =0 |
| virtual const ControlVector & | get_final_control_vector () const =0 |
Represents a two-dimensional parametric spline that interpolates between two points.
| Degree | The degree of the spline. |
|
pure virtual |
Returns the coefficients of the spline.
Implemented in trajopt::CubicHermiteSpline.
|
pure virtual |
Returns the final control vector that created this spline.
Implemented in trajopt::CubicHermiteSpline.
|
pure virtual |
Returns the initial control vector that created this spline.
Implemented in trajopt::CubicHermiteSpline.
|
inline |
Gets the pose and curvature at some point t on the spline.
| t | The point t |