Ginan
Loading...
Searching...
No Matches
algebraTrace.hpp File Reference

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)
 

Function Documentation

◆ BETTER_ENUM()

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.

◆ getFilterObjectFromFile()

template<class TYPE >
bool getFilterObjectFromFile ( E_SerialObject expectedType,
TYPE & object,
long int & startPos,
string filename )
Parameters
expectedTypeThe expected type of object, (determine using getFilterTypeFromFile() first)
objectThe pre-declared object to set the value of
startPosThe position in the file of the object's record
filenameThe path to the archive file to read from
Here is the caller graph for this function:

◆ getFilterTypeFromFile()

E_SerialObject getFilterTypeFromFile ( long int & startPos,
string filename )

Returns the type of object that is located at the specified position in a file.

Parameters
startPosPosition of object
filenamePath to archive file
Here is the caller graph for this function:

◆ spitFilterToFile()

template<class TYPE >
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.

Parameters
objectObject to output
typeType of object
filenamePath to file to output to
queueOptionally queue outputs in a separate thread
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spitFilterToFileQueued()

void spitFilterToFileQueued ( shared_ptr< void > & object_ptr,
E_SerialObject type,
string filename )
Parameters
object_ptrObject to output
typeType of object
filenamePath to file to output to
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryPrepareFilterPointers()

void tryPrepareFilterPointers ( KFState & kfState,
ReceiverMap & receiverMap )
Here is the caller graph for this function: