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

Static Public Member Functions

static void showModel (Model)
 Visualize the passed in model in a simbody-visualizer window. More...
 
static void showMarkerData (const TimeSeriesTableVec3 &)
 Show markers with time histories specified by the passed in TimeSeriesTableVec3. More...
 
static void showOrientationData (const TimeSeriesTable_< SimTK::Quaternion_< double > > &, std::string layout="line", const Model *modelForPose=nullptr)
 Show frames with time histories specified by the passed in TimeSeriesTableQuaternion. More...
 
Visualize a motion of a model using the simbody-visualizer
static void showMotion (Model, TimeSeriesTable)
 Play back an existing motion (from the table) in the simbody-visualizer. More...
 

Member Function Documentation

◆ showMarkerData()

static void OpenSim::VisualizerUtilities::showMarkerData ( const TimeSeriesTableVec3 )
static

Show markers with time histories specified by the passed in TimeSeriesTableVec3.

Visualization is shown in the simbody visualizer. Function blocks waiting for user to hit a key to start.

◆ showModel()

static void OpenSim::VisualizerUtilities::showModel ( Model  )
static

Visualize the passed in model in a simbody-visualizer window.

This function blocks until the user exits the simbody-visualizer window.

◆ showMotion()

static void OpenSim::VisualizerUtilities::showMotion ( Model  ,
TimeSeriesTable   
)
static

Play back an existing motion (from the table) in the simbody-visualizer.

The Storage should contain all generalized coordinates. The visualizer window allows the user to control playback speed. This function blocks until the user exits the simbody-visualizer window.

◆ showOrientationData()

static void OpenSim::VisualizerUtilities::showOrientationData ( const TimeSeriesTable_< SimTK::Quaternion_< double > > &  ,
std::string  layout = "line",
const Model modelForPose = nullptr 
)
static

Show frames with time histories specified by the passed in TimeSeriesTableQuaternion.

Visualization is shown in the simbody visualizer.

  • layout options: -'line' default layout frames in a row along Z axis -'circle' frames laid out around a half-circle in the Y-Z plane -'model' Load passed in model and overlay frames at origins of corresponding bodies at default pose. Must have invoked initSystem() on the model.

Function blocks waiting for user to hit a key to start.


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