Matlab VisualizerUtilities.showMotion not working
Posted: 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
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