MRSL Motion Primitive Library  1.2
A motion primitive library for generating trajectory for mobile robots
Public Member Functions | Private Attributes | List of all members
PolyTraj< Dim > Class Template Reference

Trajectory class for solving n-th polynomial with PolySolver. More...

#include <poly_traj.h>

Public Member Functions

 PolyTraj ()
 Simple constructor.
 
void clear ()
 Clear.
 
void setWaypoints (const vec_E< Waypoint< Dim >> &ws)
 Set waypoints.
 
void setTime (const std::vector< decimal_t > &dts)
 Set time allocation.
 
void addCoeff (const MatDNf< Dim > &coeff)
 Add coefficients.
 
vec_E< Primitive< Dim > > toPrimitives () const
 Convert to Primitive class.
 
Waypoint< Dim > evaluate (decimal_t t) const
 Evaluate the waypoint at t.
 
decimal_t getTotalTime () const
 Get the total time for the trajectory.
 
MatDNf< Dim > p ()
 Get the p.
 

Private Attributes

std::vector< decimal_twaypoint_times_
 
std::vector< decimal_tdts_
 
vec_E< Waypoint< Dim > > waypoints_
 
std::deque< MatDNf< Dim >, Eigen::aligned_allocator< MatDNf< Dim > > > coefficients_
 

Detailed Description

template<int Dim>
class PolyTraj< Dim >

Trajectory class for solving n-th polynomial with PolySolver.


The documentation for this class was generated from the following files: