Robotcode
1.0
|
Data storage class that holds data for one time sample for the DataManager. More...
#include <linepush5.h>
Public Member Functions | |
DataRecord () | |
Empty Constructor. | |
DataRecord (int state, int hand) | |
Constructor that records the data. | |
void | write (ostream &out) |
Write to Disk. | |
Public Attributes | |
int | state |
State of the Trial. | |
double | time |
Estimated time based of number of interrupts. | |
double | timeReal |
real time from the timer of the s626 board | |
Vector2D | position |
position of Robot | |
Vector2D | velocityFilt |
Velocity from the Kalman filter. | |
Vector2D | force |
Output force. |
Data storage class that holds data for one time sample for the DataManager.
This class stores one frame of the data record that gets safed into *.mov files The recording is done in the end of MyTrial::updateHaptics()
DataRecord::DataRecord | ( | int | s, |
int | hand | ||
) |
Constructor that records the data.
The constructor for Data record is called in the moment when the data is recorded. Sometimes you need to pass some information from the Trial (in this case state and hand), to be recorded. Otherwise it just takes the data directly from the devices
void DataRecord::write | ( | ostream & | out | ) |
Write to Disk.
This determines how a DataRecord (one line in the mov file) is written to disk.