![]() |
RobotArmLib 0.0.6
Robot Arm Library [WIP]
|
A class for constructing polynomial function. More...
#include <polynomial.h>
Public Member Functions | |
| Polynomial () | |
| Default Construction. | |
| Polynomial (const short deg, const double t=0.) | |
| Construct polynomial with given degree. | |
| void | coeffQuintic (const std::vector< double > &start, const std::vector< double > &end, const double &T) |
| Compute the coefficients of quintic (fifth order) polynomial by giving initial conditions of start and end. | |
| double | getPosition (const double &T) const |
| Get the value (position) of polynomial f(t) at time T. | |
| double | getVelocity (const double &T) const |
| Get the 1st order differential value (velocity) of polynomial f(t) at time T. | |
| double | getAcceleration (const double &T) const |
| Get the 2nd order differential value (acceleration) of polynomial f(t) at time T. | |
| short | getDegree (void) const |
| Get the degree (order) of the polynomial function. | |
| rb::math::VectorX | getCoeff (void) const |
| Get the coefficients of the polynomial function. | |
Protected Attributes | |
| short | degree_ |
| An integer indicate degree of polynomial. | |
| rb::math::VectorX | c_ |
| A vector of coefficient of polynomial. | |
| double | t_ |
| The duration (time) of polynomial function f(t). | |
A class for constructing polynomial function.
|
inline |
Compute the coefficients of quintic (fifth order) polynomial by giving initial conditions of start and end.
| start | initial condition of f[0], fd[0], fdd[0]. |
| end | initial condition of f[T], fd[T], fdd[T]. |
| T | duration (time interval) of polynomial function. |
Get the 2nd order differential value (acceleration) of polynomial f(t) at time T.
| T | the value of a certain time. |
|
inline |
Get the coefficients of the polynomial function.
Get the degree (order) of the polynomial function.
Get the value (position) of polynomial f(t) at time T.
| T | the value of certain time. |
Get the 1st order differential value (velocity) of polynomial f(t) at time T.
| T | the value of a certain time. |