API  4.3
For C++ developers
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...
 

Static Public Attributes

static const std::string Orientations
 
static const std::string LinearAccelerations
 
static const std::string MagneticHeading
 
static const std::string AngularVelocity
 

Protected Member Functions

DataAdapter::OutputTables 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
 create a map of names to TimeSeriesTables. More...
 
- Protected Member Functions inherited from OpenSim::DataAdapter
virtual OutputTables extendRead (const std::string &sourceName) const =0
 Implements reading functionality. More...
 
virtual void extendWrite (const InputTables &tables, const std::string &sinkName) const =0
 Implements writing functionality. More...
 

Additional Inherited Members

- Public Types inherited from OpenSim::DataAdapter
typedef std::map< std::string, std::shared_ptr< DataAdapter > > RegisteredDataAdapters
 Type of the registry containing registered adapters. More...
 
typedef std::map< std::string, std::shared_ptr< AbstractDataTable > > OutputTables
 Collection of tables returned by reading methods implemented in derived classes. More...
 
typedef std::map< std::string, const AbstractDataTable * > InputTables
 Collection of tables accepted by writing methods implemented in derived classes. More...
 
- Static Protected Member Functions inherited from OpenSim::DataAdapter
static std::shared_ptr< DataAdaptercreateAdapter (const std::string &identifier)
 Creator of concrete DataAdapter(s) for the specified source type by its unique identifier (string). 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

Member Data Documentation

◆ AngularVelocity

const std::string OpenSim::IMUDataReader::AngularVelocity
static

◆ LinearAccelerations

const std::string OpenSim::IMUDataReader::LinearAccelerations
static

◆ MagneticHeading

const std::string OpenSim::IMUDataReader::MagneticHeading
static

◆ Orientations

const std::string OpenSim::IMUDataReader::Orientations
static

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