API 4.4.1-2022-10-19-2c4045e59
For MATLAB, Python, Java, and C++ users
OpenSim::IMUDataReader Class Reference
+ Inheritance diagram for OpenSim::IMUDataReader:

Public Member Functions

 IMUDataReader ()=default
 
 IMUDataReader (const IMUDataReader &)=default
 
 IMUDataReader (IMUDataReader &&)=default
 
IMUDataReaderoperator= (const IMUDataReader &)=default
 
IMUDataReaderoperator= (IMUDataReader &&)=default
 
virtual ~IMUDataReader ()=default
 
- Public Member Functions inherited from OpenSim::DataAdapter
virtual DataAdapterclone () const =0
 
 DataAdapter ()=default
 
 DataAdapter (const DataAdapter &)=default
 
 DataAdapter (DataAdapter &&)=default
 
DataAdapteroperator= (const DataAdapter &)=default
 
DataAdapteroperator= (DataAdapter &&)=default
 
virtual ~DataAdapter ()=default
 
DataAdapter::OutputTables read (const std::string &dataSourceSpecification) const
 Public interface to read data from a dataSourceSpecification, typically a file or folder. More...
 
const std::shared_ptr< AbstractDataTablegetDataTable (const OutputTables &tables, const std::string tableName)
 Generic interface to retrieve a specific table by name from read result. More...
 

Static Public Member Functions

static const TimeSeriesTable_< SimTK::Quaternion_< double > > & getOrientationsTable (const DataAdapter::OutputTables &tables)
 Custom accessors to retrieve tables of proper types without requiring users/scripters to cast. More...
 
static const TimeSeriesTableVec3getLinearAccelerationsTable (const DataAdapter::OutputTables &tables)
 get table of LinearAccelerations as TimeSeriesTableVec3 More...
 
static const TimeSeriesTableVec3getMagneticHeadingTable (const DataAdapter::OutputTables &tables)
 get table of MagneticHeading as TimeSeriesTableVec3 More...
 
static const TimeSeriesTableVec3getAngularVelocityTable (const DataAdapter::OutputTables &tables)
 get table of AngularVelocity as TimeSeriesTableVec3 More...
 
- Static Public Member Functions inherited from OpenSim::DataAdapter
static bool registerDataAdapter (const std::string &identifier, const DataAdapter &adapter)
 Register a concrete DataAdapter by its unique string identifier. More...
 

Constructor & Destructor Documentation

◆ IMUDataReader() [1/3]

OpenSim::IMUDataReader::IMUDataReader ( )
default

◆ IMUDataReader() [2/3]

OpenSim::IMUDataReader::IMUDataReader ( const IMUDataReader )
default

◆ IMUDataReader() [3/3]

OpenSim::IMUDataReader::IMUDataReader ( IMUDataReader &&  )
default

◆ ~IMUDataReader()

virtual OpenSim::IMUDataReader::~IMUDataReader ( )
virtualdefault

Member Function Documentation

◆ createTablesFromMatrices()

DataAdapter::OutputTables OpenSim::IMUDataReader::createTablesFromMatrices ( double  dataRate,
const std::vector< std::string > &  labels,
const std::vector< double > &  times,
const SimTK::Matrix_< SimTK::Quaternion > &  rotationsData,
const SimTK::Matrix_< SimTK::Vec3 > &  linearAccelerationData,
const SimTK::Matrix_< SimTK::Vec3 > &  magneticHeadingData,
const SimTK::Matrix_< SimTK::Vec3 > &  angularVelocityData 
) const
protected

create a map of names to TimeSeriesTables.

MetaData contains dataRate. The result can be passed to accessors above to get individual TimeSeriesTable(s) If a matrix has nrows = 0 then an empty table is created.

◆ getAngularVelocityTable()

static const TimeSeriesTableVec3 & OpenSim::IMUDataReader::getAngularVelocityTable ( const DataAdapter::OutputTables tables)
inlinestatic

get table of AngularVelocity as TimeSeriesTableVec3

◆ getLinearAccelerationsTable()

static const TimeSeriesTableVec3 & OpenSim::IMUDataReader::getLinearAccelerationsTable ( const DataAdapter::OutputTables tables)
inlinestatic

get table of LinearAccelerations as TimeSeriesTableVec3

◆ getMagneticHeadingTable()

static const TimeSeriesTableVec3 & OpenSim::IMUDataReader::getMagneticHeadingTable ( const DataAdapter::OutputTables tables)
inlinestatic

get table of MagneticHeading as TimeSeriesTableVec3

◆ getOrientationsTable()

static const TimeSeriesTable_< SimTK::Quaternion_< double > > & OpenSim::IMUDataReader::getOrientationsTable ( const DataAdapter::OutputTables tables)
inlinestatic

Custom accessors to retrieve tables of proper types without requiring users/scripters to cast.

Scripting friendly get table of Orientations as TimeSeriesTableQuaternion

◆ operator=() [1/2]

IMUDataReader & OpenSim::IMUDataReader::operator= ( const IMUDataReader )
default

◆ operator=() [2/2]

IMUDataReader & OpenSim::IMUDataReader::operator= ( IMUDataReader &&  )
default

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