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
Converting storage file to actuators controls.xml file
- Ratna Sambhav
- Posts: 42
- Joined: Sat Jan 12, 2019 10:16 am
- Carmichael Ong
- Posts: 401
- Joined: Fri Feb 24, 2012 11:50 am
Re: Converting storage file to actuators controls.xml file
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.
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.
- Ratna Sambhav
- Posts: 42
- Joined: Sat Jan 12, 2019 10:16 am
Re: Converting storage file to actuators controls.xml file
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.
Yes, I am able to do that in GUI. Sure, I'll take the help of API commands to convert that for matlab.