Visualizer through Matlab's command line

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Patricio Pincheira
Posts: 2
Joined: Mon Mar 15, 2021 9:57 pm

Visualizer through Matlab's command line

Post by Patricio Pincheira » Mon May 24, 2021 5:50 pm

Dear All,

We are using Matlab to batch process in Opensim. At the moment, we are using the visualizer to see the markers in the model, motion files etc (e.g. scaled_model.setUseVisualizer), but we would like to see the static markers (i.e. calibration markers) "on top" of the scaled model, as you would do in the Opensim gui after associating a motion data to the static pose (see attached pic). Is this possible through Matlab's command window?

Regards,

Patricio
Attachments
OpenSim_fig.PNG
model + static
OpenSim_fig.PNG (184.25 KiB) Viewed 252 times

Tags:

User avatar
Thomas Uchida
Posts: 1794
Joined: Wed May 16, 2012 11:40 am

Re: Visualizer through Matlab's command line

Post by Thomas Uchida » Tue May 25, 2021 8:06 am

I don't think there's a single function you can call to do this, but you could instead add each calibration marker to the Ground body of your model. If your calibration data are relative to the Ground reference frame, the calibration markers should appear close to their corresponding model markers.

User avatar
Patricio Pincheira
Posts: 2
Joined: Mon Mar 15, 2021 9:57 pm

Re: Visualizer through Matlab's command line

Post by Patricio Pincheira » Tue May 25, 2021 7:36 pm

Thanks Thomas, I will try this.

Cheers,

Patricio

POST REPLY