Skip to content

gateway240/opensim-core-examples

Repository files navigation

opensim-core-examples

Examples

IMUXsense

  1. Uses data from the Kuopio Gait Dataset
  2. Download MTI Manager and install. Use the extra steps for Linux if needed.
  3. Load an .mtb file representing a trial into MTI manager.
  4. Export from MTI Manager using the following settings MTI Manager Export Dialog

NOTE: Data collected at 100 Hz

Minimal Bug Reproduction

Triangle Inequality

For reproducing this error:

what(): SimTK Exception thrown at MassProperties.h:542: Error detected by Simbody method Inertia::operator-=(): Diagonals of an Inertia matrix must satisfy the triangle inequality; got 0.000105365,0.00021073,0.00105365. (Required condition 'Ixx+Iyy+Slop>=Izz && Ixx+Izz+Slop>=Iyy && Iyy+Izz+Slop>=Ixx' was not met.)

use IMUIKTriangleInequality example and build opensim-core. Tested with and without python or java bindings and it didn't make a difference

Locale IO Problem

For reproducing this error:

what(): Timestamp at row 0 with value 0,000000 is greater-than/equal to timestamp at row 1 with value 0,000000 Thrown at TimeSeriesTable.h:533 in validateRow().

use the IMUIKLocaleProblem example

Build Instructions

  1. Make sure you have opensim-core installed and on path

  2. Change to example project directory

cmake -B build .
cd build
make

Code Reference

// How to get a body from a model
const OpenSim::Body& body = model.getBodySet().get("pelvis");

Running Bulk scripts

./main ~/Downloads/kuopio-gait-dataset ~/data/kuopio-gait-dataset
7z a -mmt=on ~/data/kuopio-gait-dataset-processed-v2.zip ~/data/kuopio-gait-dataset/*
7z a -mmt=on ~/data/kuopio-gait-dataset-processed-01-25-v2.zip ~/data/kuopio-gait-dataset-processed-01-25/*
7z a -mmt=on ~/data/kuopio-gait-dataset-processed-26-51-v2.zip ~/data/kuopio-gait-dataset-processed-26-51/*

Running OpenSim

~/opensim-workspace/opensim-gui-source/Gui/opensim/dist/installer/opensim/bin/opensim --jdkhome /usr/lib/jvm/default

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published