#include <AttitudeHistory.h>
Inheritance diagram for O_SESSAME::AttitudeHistory:
The AttitudeHistory class provides a container of previous AttitudeState objects. The user may append new states, reset the collection of states, or return the attitude history in a matrix. If the user appends attitude states at time which earlier than the end of the current history, the current history is deleted from that point on, and the new attitude states are appended.
AttitudeState myAttitudeState; myAttitudeState.SetRotation(Rotation(Quaternion(0,0,0,1))); Vector initAngVelVector(3); initAngVelVector(1) = 0.1; myAttitudeState.SetAngularVelocity(initAngVelVector); AttitudeHistory myAttitudeHistory; // create an attitude history with an empty collection myAttitudeHistory.AppendHistory(0, myAttitudeState); // add the state myAttitudeState which occured at t=0 to the history cout << myAttitudeHistory.GetHistory() << endl; // Get a matrix of the stored state and output // [t0, attitude parameters @ t=0] // [t1, attitude parameters @ t=1] // [t2, attitude parameters @ t=2] etc...
Definition at line 49 of file AttitudeHistory.h.
Public Member Functions | |
AttitudeHistory () | |
Constructs an empty attitude history. | |
~AttitudeHistory () | |
Default Deconstructor. | |
void | AppendHistory (const double &_appendTime, const Rotation &_appendRotation, const Vector &_appendAngVel) |
Add the attitude rotation and angular velocity, which occured at a time in seconds, to the history. | |
void | AppendHistory (const ssfTime &_appendTime, const Rotation &_appendRotation, const Vector &_appendAngVel) |
Add the attitude rotation and angular velocity, which occured with an ssfTime object, to the history. | |
void | AppendHistory (const double &_appendTime, const AttitudeState &_appendAttitudeState) |
Add the attitude state that occured at a time in seconds to the history. | |
void | AppendHistory (const ssfTime &_appendTime, const AttitudeState &_appendAttitudeState) |
Add the attitude state that occured with an ssfTime object to the history. | |
void | AppendHistory (const vector< ssfTime > &_appendTime, const vector< AttitudeState > &_appendAttitudeState) |
Add a vector of ssfTime and AttitudeState objects to the stored history. | |
void | AppendHistory (const vector< ssfTime > &_appendTime, const vector< Rotation > &_appendRotation, const vector< Vector > &_appendAngVel) |
Add a vector of ssfTime, Rotation, and Angular Velocity vector objects to the stored history. | |
void | ResetHistory () |
Erases the attitude state history. | |
Matrix | GetHistory (const RotationType &_rotType=Quaternion_Type) |
Returns a matrix of the attitude state history. | |
void | GetState (const ssfTime &_requestedTime, Rotation &_returnRotation, Vector &_returnAngVelVector) |
Returns the attitude state at the requested time. | |
AttitudeState | GetState (const ssfTime &_requestedTime) |
Returns the Attitude state at the requested time. | |
virtual void | AppendHistory (const double &_appendTime) |
Add a time (in seconds) to the stored history. | |
virtual void | AppendHistory (const ssfTime &_appendTime) |
Add an ssfTime object to the stored history. | |
virtual vector< ssfTime >::difference_type | AppendHistory (const vector< ssfTime > &_appendTime) |
Add a vector of ssfTime objects to the stored history. | |
virtual Matrix | GetHistory () |
Returns a matrix of the time history. | |
virtual void | SetInterpolator (Interpolator *_newInterpolator) |
Returns the nearest stored,lower mesh point to the requested time. Sets the interpolator used for calculating the states in-between stored mesh points. | |
Protected Attributes | |
vector< ssfTime > | m_TimeHistory |
internal vector container of the ssfTime objects describing the state history | |
Interpolator * | m_OriginalInterpolator |
internal storage of the original, nominal interpolator to be copied and used for all interpolations | |
vector< Interpolator * > | m_TimeInterpolations |
internal vector of time interpolations | |
Private Attributes | |
vector< AttitudeState > | m_AttitudeHistory |
internal vector container of the AttitudeState objects describing the state history | |
vector< Interpolator * > | m_AttitudeInterpolations |
internal vector of attitude interpolations |
|
Constructs an empty attitude history.
Definition at line 15 of file AttitudeHistory.cpp. |
|
Default Deconstructor.
Definition at line 22 of file AttitudeHistory.cpp. |
|
Add the attitude rotation and angular velocity, which occured at a time in seconds, to the history. Appends the state at t=_appendTime. if the new state occured at a time that is earlier than any of the stored values then the time history will be erased from the overlap point and the new state will be appended.
Definition at line 27 of file AttitudeHistory.cpp. |
|
Add the attitude rotation and angular velocity, which occured with an ssfTime object, to the history. Appends the state at t=_appendTime. if the new state occured at a time that is earlier than any of the stored values then the time history will be erased from the overlap point and the new state will be appended.
Definition at line 32 of file AttitudeHistory.cpp. |
|
Add the attitude state that occured at a time in seconds to the history. Appends the state at t=_appendTime. if the new state occured at a time that is earlier than any of the stored values then the time history will be erased from the overlap point and the new state will be appended.
Definition at line 39 of file AttitudeHistory.cpp. |
|
Add the attitude state that occured with an ssfTime object to the history. Appends the state at t=_appendTime. if the new state occured at a time that is earlier than any of the stored values then the time history will be erased from the overlap point and the new state will be appended.
Definition at line 44 of file AttitudeHistory.cpp. |
|
Add a vector of ssfTime and AttitudeState objects to the stored history. if the beginning of the new state vector occured earlier than any of the stored values then the attitude history will be erased from the overlap point and the new attitude state vector will be appended.
Definition at line 52 of file AttitudeHistory.cpp. |
|
Add a vector of ssfTime, Rotation, and Angular Velocity vector objects to the stored history. if the beginning of the new state vector occured earlier than any of the stored values then the attitude history will be erased from the overlap point and the new attitude state vector will be appended.
Definition at line 69 of file AttitudeHistory.cpp. |
|
Erases the attitude state history.
Reimplemented from O_SESSAME::History. Definition at line 86 of file AttitudeHistory.cpp. |
|
Returns a matrix of the attitude state history. returns the matrix of the form: // Get a matrix of the stored state and output [t0, attitude parameters @ t=0] [t1, attitude parameters @ t=1] [t2, attitude parameters @ t=2] etc...
Definition at line 95 of file AttitudeHistory.cpp. |
|
Returns the attitude state at the requested time.
Definition at line 119 of file AttitudeHistory.cpp. |
|
Returns the Attitude state at the requested time.
Reimplemented from O_SESSAME::History. Definition at line 112 of file AttitudeHistory.cpp. |
|
Add a time (in seconds) to the stored history. if the new time is earlier than any of the stored values then the time history will be erased from the overlap point and the new value will be appended.
Definition at line 31 of file History.cpp. |
|
Add an ssfTime object to the stored history. if the new time is earlier than any of the stored values then the time history will be erased from the overlap point and the new value will be appended.
Definition at line 35 of file History.cpp. |
|
Add a vector of ssfTime objects to the stored history. if the beginning of the new time vector is earlier than any of the stored values then the time history will be erased from the overlap point and the new time vector will be appended.
Definition at line 40 of file History.cpp. |
|
Returns a matrix of the time history.
Reimplemented in O_SESSAME::OrbitHistory. Definition at line 69 of file History.cpp. |
|
Returns the nearest stored,lower mesh point to the requested time. Sets the interpolator used for calculating the states in-between stored mesh points.
Definition at line 149 of file History.cpp. |
|
internal vector container of the AttitudeState objects describing the state history
Definition at line 164 of file AttitudeHistory.h. |
|
internal vector of attitude interpolations
Definition at line 166 of file AttitudeHistory.h. |
|
internal vector container of the ssfTime objects describing the state history
|
|
internal storage of the original, nominal interpolator to be copied and used for all interpolations
|
|
internal vector of time interpolations
|