Converting storage file to actuators controls.xml file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ratna Sambhav
Posts: 42
Joined: Sat Jan 12, 2019 10:16 am

Converting storage file to actuators controls.xml file

Post by Ratna Sambhav » Mon Jun 22, 2020 5:46 am

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

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Converting storage file to actuators controls.xml file

Post by Carmichael Ong » Wed Jun 24, 2020 9:58 am

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.

User avatar
Ratna Sambhav
Posts: 42
Joined: Sat Jan 12, 2019 10:16 am

Re: Converting storage file to actuators controls.xml file

Post by Ratna Sambhav » Wed Jun 24, 2020 10:06 pm

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.

POST REPLY