|
MRSL Motion Primitive Library
1.2
A motion primitive library for generating trajectory for mobile robots
|
Trajectory generator back-end class. More...
#include <poly_solver.h>
Public Member Functions | |
| PolySolver (unsigned int smooth_derivative_order, unsigned int minimize_derivative, bool debug=false) | |
| Simple constructor. More... | |
| bool | solve (const vec_E< Waypoint< Dim >> &waypoints, const std::vector< decimal_t > &dts) |
| Solve the trajector as defined in constructor. More... | |
| std::shared_ptr< PolyTraj< Dim > > | getTrajectory () |
| Get the solved trajectory. | |
Protected Attributes | |
| unsigned int | N_ |
| Number of coefficients of a polynomial. | |
| unsigned int | R_ |
| Order of derivative to optimize. | |
| MatDf | A_ |
| MatDf | Q_ |
| bool | debug_ |
| Enble output on screen. | |
| std::shared_ptr< PolyTraj< Dim > > | ptraj_ |
| Solved trajectory. | |
Trajectory generator back-end class.
Given intermediate waypoints and associated time allocation, generate the n-th order polynomials
| PolySolver< Dim >::PolySolver | ( | unsigned int | smooth_derivative_order, |
| unsigned int | minimize_derivative, | ||
| bool | debug = false |
||
| ) |
Simple constructor.
| smooth_derivative_order | The max derivative we want continuous |
| minimize_derivative | The derivative to minimize |
| bool PolySolver< Dim >::solve | ( | const vec_E< Waypoint< Dim >> & | waypoints, |
| const std::vector< decimal_t > & | dts | ||
| ) |
Solve the trajector as defined in constructor.
| waypoints | Intermediate waypoints that the trajectory pass through |
| dts | Time allocation for each segment |
Note that the element in dts is the time for that segment
1.8.13