Robotcode  1.0
DataRecord Class Reference

Data storage class that holds data for one time sample for the DataManager. More...

#include <linepush5.h>

List of all members.

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.

Detailed Description

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()

See also:
MyTrial::updateHaptics()

Constructor & Destructor Documentation

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

See also:
DataManager::record() updateHaptics()

Member Function Documentation

void DataRecord::write ( ostream &  out)

Write to Disk.

This determines how a DataRecord (one line in the mov file) is written to disk.

See also:
MyTrial::saveMov() DataManager::save()

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