Generates a 1DOF order-three trajectory.
#include <TrajGen.hpp>
|
bool | configure (const double xi, const double xf, const double _T) |
|
bool | configure (const double xi, const double xf, const double xdoti, const double xdotf, const double _T) |
|
double | get (const double ti) const |
|
double | getdot (const double ti) const |
|
double | getdotdot (const double ti) const |
|
bool | maxVelBelow (const double thresVel) const |
|
bool | maxAccBelow (const double thresAcc) const |
|
double | getT () const |
|
void | dump (double samples) const |
|
|
double | a3 |
|
double | a2 |
|
double | a1 |
|
double | a0 |
|
double | T |
|
◆ configure() [1/2]
bool OrderThreeTraj::configure |
( |
const double |
xi, |
|
|
const double |
xf, |
|
|
const double |
_T |
|
) |
| |
|
inlinevirtual |
Configure the trajectory. Forces null initial and final velocities.
Implements Traj.
◆ configure() [2/2]
bool OrderThreeTraj::configure |
( |
const double |
xi, |
|
|
const double |
xf, |
|
|
const double |
xdoti, |
|
|
const double |
xdotf, |
|
|
const double |
_T |
|
) |
| |
|
inlinevirtual |
Configure the trajectory setting an initial and final velocity too (warning: possible overshoot).
Implements Traj.
◆ dump()
void OrderThreeTraj::dump |
( |
double |
samples | ) |
const |
|
inlinevirtual |
Printf of ti, f(ti), fdot(ti), fdotdot(ti) for whole duration interval.
- Parameters
-
samples | number of lines to print. |
Implements Traj.
◆ get()
double OrderThreeTraj::get |
( |
const double |
ti | ) |
const |
|
inlinevirtual |
- Returns
- the value of the function at instant ti.
Implements Traj.
◆ getdot()
double OrderThreeTraj::getdot |
( |
const double |
ti | ) |
const |
|
inlinevirtual |
- Returns
- the value of the first derivative of the function at instant ti.
Implements Traj.
◆ getdotdot()
double OrderThreeTraj::getdotdot |
( |
const double |
ti | ) |
const |
|
inlinevirtual |
- Returns
- the value of the second derivative of the function at instant ti.
Implements Traj.
◆ getT()
double OrderThreeTraj::getT |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- duration assigned to the trajectory instance.
Implements Traj.
◆ maxAccBelow()
bool OrderThreeTraj::maxAccBelow |
( |
const double |
thresAcc | ) |
const |
|
inlinevirtual |
Check if the maximum of the second derivative is below a certain threshold.
Implements Traj.
◆ maxVelBelow()
bool OrderThreeTraj::maxVelBelow |
( |
const double |
thresVel | ) |
const |
|
inlinevirtual |
Check if the maximum of the first derivative is below a certain threshold.
Implements Traj.
The documentation for this class was generated from the following file: