#include <rdKinematics.h>
Public Member Functions | |
| virtual | ~rdKinematics () |
| Destructor. | |
| rdKinematics (const char *aSuiteName, int aNStates) | |
| Construct a suite of splines. | |
| int | initialize (const char *aSuiteName, int aNStates) |
| Initialize a suite of splines. | |
| int | getNY () |
| Get the number of sates. | |
| double | pos (int aState, double aTime) |
| Evaluate the position of a state. | |
| double | vel (int aState, double aTime) |
| Evaluate the velocity of a state. | |
| double | acc (int aState, double aTime) |
| Evaluate the acceleration of a state. | |
| char | isStateIndexValid (int aState) |
| Is a state index valid? | |
Private Attributes | |
| int | _status |
| char * | _name |
| int | _n |
| rdSpline ** | _spPos |
| rdSpline ** | _spVel |
| rdSpline ** | _spAcc |
The kinematic curve, whether position, velocity, or acceleration, is represented by a b-spline. The b-splines for the positions were obtained by performing a least-squares fit of the curve to a set of data. The b-splines for the velocities and accelerations were obtained by analytically differentiating the position b-splines.
|
||||||||||||
|
Construct a suite of splines. The suite is a sequence of files which all have some suite name in common and are appended by a number (starting with 1, not 0) which indicates a state of the system. Note that it is currently assumed that each spline file contains a spline representation for the displacement, velocity, and acceleration of some state.
|
|
||||||||||||
|
Evaluate the acceleration of a state.
|
|
|
Get the number of sates.
|
|
||||||||||||
|
Initialize a suite of splines. The suite is a sequence of files which all have some suite name in common and are appended by a number (starting with 1, not 0) which indicates a state of the system. Note that it is currently assumed that each spline file contains a spline representation for the displacement, velocity, and acceleration of some state.
|
|
|
Is a state index valid?
|
|
||||||||||||
|
Evaluate the position of a state.
|
|
||||||||||||
|
Evaluate the velocity of a state.
|
1.3