MRSL Motion Primitive Library
1.2
A motion primitive library for generating trajectory for mobile robots
|
Primitive1D class. More...
#include <primitive.h>
Public Member Functions | |
Primitive1D () | |
Empty constructor. | |
Primitive1D (const Vec6f &coeff) | |
Construct from known coefficients. More... | |
Primitive1D (decimal_t p, decimal_t u) | |
Construct 1D primitive from an initial state (p) and an input control (u) | |
Primitive1D (Vec2f state, decimal_t u) | |
Primitive1D (Vec3f state, decimal_t u) | |
Primitive1D (Vec4f state, decimal_t u) | |
Primitive1D (decimal_t p1, decimal_t p2, decimal_t t) | |
Primitive1D (decimal_t p1, decimal_t v1, decimal_t p2, decimal_t v2, decimal_t t) | |
Primitive1D (decimal_t p1, decimal_t v1, decimal_t a1, decimal_t p2, decimal_t v2, decimal_t a2, decimal_t t) | |
decimal_t | J (decimal_t t, const Control::Control &control) const |
Return total efforts of 1D primitive for the given duration: . More... | |
Vec6f | coeff () const |
Return coffecients. | |
decimal_t | p (decimal_t t) const |
Return at time . | |
decimal_t | v (decimal_t t) const |
Return at time . | |
decimal_t | a (decimal_t t) const |
Return at time . | |
decimal_t | j (decimal_t t) const |
Return at time . | |
std::vector< decimal_t > | extrema_v (decimal_t t) const |
Return vector of time for velocity extrema. More... | |
std::vector< decimal_t > | extrema_a (decimal_t t) const |
Return vector of time for acceleration extrema. More... | |
std::vector< decimal_t > | extrema_j (decimal_t t) const |
Return vector of time for jerk extrema. More... | |
Public Attributes | |
Vec6f | c {Vec6f::Zero()} |
Coefficients. | |
Primitive1D class.
Assume the 1D primitive is the n-th order polynomial with n = 5 as
|
inline |
Construct from known coefficients.
coeff[0] | is the coefficient of the highest order |
Construct 1D primitive from an initial state (p, v) and an input control (u)
Construct 1D primitive from an initial state (p, v, a) and an input control (u)
Construct 1D primitive from an initial state (p, v, a, j) and an input control (u)
Construct 1D primitive from an initial state (p1) to a goal state (p2), given duration t
|
inline |
Construct 1D primitive from an initial state (p1, v1) to a goal state (p2, v2), given duration t
|
inline |
Construct 1D primitive from an initial state (p1, v1, a1) to a goal state (p2, v2, a2), given duration t
Return vector of time for acceleration extrema.
Accelerations at both ends (0, t) are not considered
Return vector of time for jerk extrema.
Jerks at both ends (0, t) are not considered
Return vector of time for velocity extrema.
Velocities at both ends (0, t) are not considered
|
inline |
Return total efforts of 1D primitive for the given duration: .
t | assume the duration is from 0 to t |
control | effort is defined as -th derivative of polynomial |