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.
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.
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
RRA Optimization - Samaan et al. 2016
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: RRA Optimization - Samaan et al. 2016
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.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
- Kenneth Smale
- Posts: 12
- Joined: Thu Mar 05, 2015 10:11 am
Re: RRA Optimization - Samaan et al. 2016
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.
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.
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: RRA Optimization - Samaan et al. 2016
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
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
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: RRA Optimization - Samaan et al. 2016
Your suggestion worked nicely Kenneth!
The optimization is running smoothly now.
Thanks for your input.
Nicos
The optimization is running smoothly now.
Thanks for your input.
Nicos