#include <CubicPoly.h>
Inheritance diagram for OSCAR::CubicPoly:

Public Methods | |
| CubicPoly (const Vector &initialPos, const Vector &finalPos, const Vector &initialVel, const Vector &finalVec, const double SampleTime, OSCARError &err=DUMMY_ERROR(noError)) | |
| CubicPoly (const CubicPoly &rhs) | |
| CubicPoly & | operator= (const CubicPoly &rhs) |
| bool | SetPositionConditions (const Vector &initialPos, const Vector &finalPos) |
| bool | SetVelocityConditions (const Vector &initialVel, const Vector &finalVel) |
| bool | GenerateTrajectory (double deltaTime) |
| bool | GetTrajectory (std::vector< Vector > &Trajectory) const |
| bool | GetTrajectoryPoint (unsigned int i, Vector &point) |
| unsigned int | GetTrajectorySize () |
| virtual | ~CubicPoly () |
Protected Methods | |
| void | initialize () |
Protected Attributes | |
| unsigned int | dof |
| Vector | initialPosition |
| Vector | finalPosition |
| Vector | initialVelocity |
| Vector | finalVelocity |
| Vector | a0 |
| Vector | a1 |
| Vector | a2 |
| Vector | a3 |
| double | sampleTime |
| std::vector< Vector > | trajectory |
|
||||||||||||||||||||||||||||
|
Constructor. This constructor creates an CubicPoly object.
|
|
|
Copy Constructor. This is the Copy constructor for an object of type CubicPoly. Use this to construct an CubicPoly object from an existing CubicPoly object.
|
|
|
|
|
|
Use this method to generate a trajectory from supplied initial/final conditions;.
|
|
|
Use this method to retrieve the generated trajectory.
|
|
||||||||||||
|
Use this method to retrieve a specific point from the internally stored trajectory. If you provide an index which is not valid, this method will fail.
|
|
|
Use this method to retrieve the size of the internally stored trajectory. If the trajectory has not been generated, this value will be zero.
|
|
|
|
|
|
Assignment operator. This is the Assignment operator for an object of type CubicPoly.
|
|
||||||||||||
|
Use this method to reset the initial conditions for the polynomial trajectory.
|
|
||||||||||||
|
Use this method to reset the finaln conditions for the polynomial trajectory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |