Ginan
|
Functions | |
BETTER_ENUM (E_SerialObject, int, NONE, FILTER_MINUS, FILTER_PLUS, FILTER_SMOOTHED, TRANSITION_MATRIX, NAVIGATION_DATA, STRING, MEASUREMENT, METADATA) struct TransitionMatrixObject | |
Types of objects that are stored in kalman filter binary archives. | |
void | spitFilterToFileQueued (shared_ptr< void > &object_ptr, E_SerialObject type, string filename) |
template<class TYPE > | |
void | spitFilterToFile (TYPE &object, E_SerialObject type, string filename, bool queue=false) |
Output filter state to a file for later reading. | |
template<class TYPE > | |
bool | getFilterObjectFromFile (E_SerialObject expectedType, TYPE &object, long int &startPos, string filename) |
E_SerialObject | getFilterTypeFromFile (long int &startPos, string filename) |
Returns the type of object that is located at the specified position in a file. | |
void | tryPrepareFilterPointers (KFState &kfState, ReceiverMap &receiverMap) |
BETTER_ENUM | ( | E_SerialObject | , |
int | , | ||
NONE | , | ||
FILTER_MINUS | , | ||
FILTER_PLUS | , | ||
FILTER_SMOOTHED | , | ||
TRANSITION_MATRIX | , | ||
NAVIGATION_DATA | , | ||
STRING | , | ||
MEASUREMENT | , | ||
METADATA | ) |
Types of objects that are stored in kalman filter binary archives.
bool getFilterObjectFromFile | ( | E_SerialObject | expectedType, |
TYPE & | object, | ||
long int & | startPos, | ||
string | filename ) |
expectedType | The expected type of object, (determine using getFilterTypeFromFile() first) |
object | The pre-declared object to set the value of |
startPos | The position in the file of the object's record |
filename | The path to the archive file to read from |
E_SerialObject getFilterTypeFromFile | ( | long int & | startPos, |
string | filename ) |
Returns the type of object that is located at the specified position in a file.
startPos | Position of object |
filename | Path to archive file |
void spitFilterToFile | ( | TYPE & | object, |
E_SerialObject | type, | ||
string | filename, | ||
bool | queue = false ) |
Output filter state to a file for later reading.
Uses a binary archive which requires all of the relevant class members to have serialization functions written. Output format is TypeId, ObjectData, NumBytes - this allows seeking backward from the end of the file to the beginning of each object.
object | Object to output |
type | Type of object |
filename | Path to file to output to |
queue | Optionally queue outputs in a separate thread |
void spitFilterToFileQueued | ( | shared_ptr< void > & | object_ptr, |
E_SerialObject | type, | ||
string | filename ) |
object_ptr | Object to output |
type | Type of object |
filename | Path to file to output to |
void tryPrepareFilterPointers | ( | KFState & | kfState, |
ReceiverMap & | receiverMap ) |