Matlab VisualizerUtilities.showMotion not working

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Isabelle Ebisch
Posts: 3
Joined: Mon Oct 04, 2021 5:16 am

Matlab VisualizerUtilities.showMotion not working

Post by Isabelle Ebisch » Wed May 11, 2022 5:26 am

Hi,

I would like to solve IK in Matlab and show the solution in the visualizer.

I am able to display my model with using VisualizerUtilities.showModel(myModel). However if I use VisualizerUtilities.showMotion(myModel, table) the window is blank. I think someone else came across the same problem in Python in another thread.

Any suggestions? Or has anyone successfully used VisualizerUtilities.showMotion() yet?


This is the code I used:

myModel = Model('filepath.osim');
myModel.setUseVisualizer(true);
vis = VisualizerUtilities();

table = TimeSeriesTable ('filepath.mot');
VisualizerUtilities.showMotion(myModel, table);

Thanks for your help!

BW
Isabelle

Tags:

POST REPLY