MipBaselib::MotionModuleTStateLog Class Reference

A list of states of an unycicle with timestamps. More...

#include <MotionModuleState.h>

List of all members.

Public Member Functions

TimestampLocation getTState (MotionModuleTState &outputTState, Time timeStamp)
 Gets the state in the log based on the given timestamp, if a state with such timestamp is not present it adds it interpolating near states.
TimestampLocation correctTState (MotionModuleTState &correctedTState)
 Sets the state in the log based on the given timestamp.
string print ()


Detailed Description

A list of states of an unycicle with timestamps.

Author:
Antonio Franchi

Member Function Documentation

TimestampLocation MotionModuleTStateLog::getTState ( MotionModuleTState outputTState,
Time  timeStamp 
)

Gets the state in the log based on the given timestamp, if a state with such timestamp is not present it adds it interpolating near states.

Returns:
A flag which is TSPOS_IS_INSIDE if the timestamp is inside the the log, TSPOS_IS_BEFORE if is before the first element, TSPOS_IS_AFTER if is after the last element.
Parameters:
[out] &outputTState The found state, it makes sense only if return value is TSPOS_IS_INSIDE.
[in] timeStamp Timestamp to find or generate.
Todo:
to test

TimestampLocation MotionModuleTStateLog::correctTState ( MotionModuleTState correctedTState  ) 

Sets the state in the log based on the given timestamp.

If the state with such timestamp is not present the method it gives a fatal error. All the states with a timestamp greater then the given timestamp, are updated accordingly. If the state with such timestamp is not present it adds it interpolating near states.

Returns:
A flag which is TSPOS_IS_INSIDE if the timestamp is inside the the log, TSPOS_IS_BEFORE if is before the first element, TSPOS_IS_AFTER if is after the last element.
Parameters:
[in] &correctedTState Corrected state.
Todo:
to test

string MipBaselib::MotionModuleTStateLog::print (  )  [inline]


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6