Page 1 of 1

Converting storage file to actuators controls.xml file

Posted: Mon Jun 22, 2020 5:46 am
by sambhav.ratna
Hello,

I created an actuator storage file using matlab scripting. I ultimately want control.xml file from this.
For that, I used the python script in OpenSim GUI named createControlsFromStorage.py. This file basically created my actuator controls file which I can give as input to the actuator constrains in CMC.

All I want now, is to execute this conversion of actuator controls file from .STO to .XML from matlab.
Is there a similar code written for matlab which can do this?
I am not able to execute this python script from matlab, because of the library import problem of org.opensim.utils.

Thankyou
Ratna

Re: Converting storage file to actuators controls.xml file

Posted: Wed Jun 24, 2020 9:58 am
by ongcf
Even though that script has .py at the end, you can run it directly in the GUI's scripting shell. See https://simtk-confluence.stanford.edu/d ... in+the+GUI

I'm not aware of this code for MATLAB, but it could be converted to MATLAB. All calls to the OpenSim API would look (almost) identical, but the Python specific code would have to be translated over to MATLAB.

Re: Converting storage file to actuators controls.xml file

Posted: Wed Jun 24, 2020 10:06 pm
by sambhav.ratna
Thankyou Ong for your reply.
Yes, I am able to do that in GUI. Sure, I'll take the help of API commands to convert that for matlab.