◆ computeHeadingCorrection()
static SimTK::Vec3 OpenSim::OpenSenseUtilities::computeHeadingCorrection |
( |
OpenSim::Model & |
model, |
|
|
const SimTK::State & |
state, |
|
|
OpenSim::TimeSeriesTable_< SimTK::Quaternion_< double >> & |
quatTimeSeries, |
|
|
const std::string & |
baseIMU, |
|
|
const SimTK::CoordinateDirection |
|
|
) |
| |
|
static |
Compute a SimTK::Vec3 of Space-fixed XYZ Euler angles that aligns the specified baseIMU and CoordinateDirection combination with the positive X-axis (= typically forward) direction of the base segment in OpenSim model.
Base segment is typically the segment attached directly to Ground. baseIMU is assumed to be placed on Base segment. Passed in state places the model in the same configuration as the first frame of the passed in table of quaternions quatTimeSeries.
◆ convertQuaternionsToRotations()
Convert a TimeSeriesTable with quaternions as data elements into a TimeSeriesTable of Rotation matrices.
◆ createOrientationsFileFromMarkers()
static TimeSeriesTable_<SimTK::Quaternion> OpenSim::OpenSenseUtilities::createOrientationsFileFromMarkers |
( |
const std::string & |
markersFile | ) |
|
|
static |
Create Orientations as a TimeSeriesTable based on passed in markerFile.
◆ formTransformFromPoints()
static SimTK::Transform OpenSim::OpenSenseUtilities::formTransformFromPoints |
( |
const SimTK::Vec3 & |
op, |
|
|
const SimTK::Vec3 & |
xp, |
|
|
const SimTK::Vec3 & |
yp |
|
) |
| |
|
static |
form a Transform from 3 points origin (op), along x (xp - op), along y(yp - op)
◆ rotateOrientationTable()
static void OpenSim::OpenSenseUtilities::rotateOrientationTable |
( |
OpenSim::TimeSeriesTable_< SimTK::Quaternion_< double >> & |
quaternionsTable, |
|
|
const SimTK::Rotation_< double > & |
rotationMatrix |
|
) |
| |
|
static |
Apply the passed in Rotation matrix to a TimeSeriesTable of Quaternions.
The rotation is done in place so the table passed in is modified
The documentation for this class was generated from the following file:
- OpenSim/Simulation/OpenSense/OpenSenseUtilities.h