RRA Optimization - Samaan et al. 2016

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Nicos Haralabidis
Posts: 196
Joined: Tue Aug 16, 2016 1:46 am

RRA Optimization - Samaan et al. 2016

Post by Nicos Haralabidis » Wed Nov 01, 2017 3:27 am

Dear users,

I am currently having some difficulties running the Matlab RRA Optimization algorithm developed by Dr Michael Samaan.

https://simtk.org/projects/rra-opt-gui/

I am using a 64-bit windows 10 laptop, 64-bit 2017b Matlab, and 64-bit OpenSim 3.3.

I have added the contents of the folder to the current path in Matlab, I then populate the relevant GUI fields with the required information following the instructions provided in the user guide.
1.PNG
1.PNG (62.13 KiB) Viewed 946 times
The optimization then commences, but all I see in the command window is NaN's - which I do not think should be appearing? Also the figure is not populating.
2.PNG
2.PNG (42.21 KiB) Viewed 946 times
I have also checked the out.log file and I receive the following message:

Constructing investigation from setup file C:\OpenSim.


Exception:
Object: ERR- Could not open file C:\OpenSim. It may not exist or you don't
have permission to read it.
file= C:\OpenSim33\src\opensim32\OpenSim\Common\Object.cpp
line= 114


Has anyone else encountered these issues? If so, how did you please resolve them?

Kind regards,

Nicos Haralabidis

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: RRA Optimization - Samaan et al. 2016

Post by jimmy d » Wed Nov 01, 2017 7:55 am

Exception:
Object: ERR- Could not open file C:\OpenSim. It may not exist or you don't
have permission to read it.
file= C:\OpenSim33\src\opensim32\OpenSim\Common\Object.cpp
line= 114
This reads as there is a filepath specific somewhere as 'C:\OpenSim'. Since that is a path to a directory and not a file, it is causing an error.

User avatar
Kenneth Smale
Posts: 12
Joined: Thu Mar 05, 2015 10:11 am

Re: RRA Optimization - Samaan et al. 2016

Post by Kenneth Smale » Wed Nov 01, 2017 8:31 am

Hi Nicos,

I had this same problem, which was solved by doing the following:

-Make RRA_OPT_GUI_R1 your cd in matlab
-Add Matlab_Code_GUI folder and subfolders to your path
-Copy over all of the following files associated with the model/trial you are trying to optimize to the RRA_OPT_GUI_R1 folder:
grf.mot file
grf.xml file
ik.mot file
setup_ReduceResiduals.xml file
rra_actuators.xml
rra_tasks.xml
rra_controlconstraints.xml
model.osim
id.sto file (I'm pretty sure this one isn't actually needed, but copied over with all the others anyways)
-Make sure that all of your setup.xml files are calling in the files with the correct path since you changed these file paths when copying the files to the RRA_OPT_GUI_R1 folder.

Hopefully this fixes your error like it did for me.

User avatar
Nicos Haralabidis
Posts: 196
Joined: Tue Aug 16, 2016 1:46 am

Re: RRA Optimization - Samaan et al. 2016

Post by Nicos Haralabidis » Wed Nov 01, 2017 12:29 pm

Hi both,

Thanks for your replies! I had a feeling it was due to the file locations.

I will report back after I have tried your suggestion Kenneth.

Kind regards,

Nicos Haralabidis

User avatar
Nicos Haralabidis
Posts: 196
Joined: Tue Aug 16, 2016 1:46 am

Re: RRA Optimization - Samaan et al. 2016

Post by Nicos Haralabidis » Wed Nov 01, 2017 1:24 pm

Your suggestion worked nicely Kenneth!

The optimization is running smoothly now.

Thanks for your input.

Nicos

POST REPLY