Page 1 of 1

Trouble Plotting Results with CMC Plotting Script

Posted: Sat Jun 15, 2019 4:03 pm
by choltkamp1
Hi, I am new to Opensim and I am trying to learn the software for some of my research. I was working on the following tutorial: "Simulation-Based Design to reduce Metabolic Cost", and ran across an issue when trying to plot the cmc results using the script CMC_EvaluateResults.py. After selecting ,running, and selecting the location to save the results. I returned the following error in the picture below:


Screen Shot 2019-06-15 at 5.18.59 PM.png
Screen Shot 2019-06-15 at 5.18.59 PM.png (443.12 KiB) Viewed 240 times

If you cannot see the picture is basically says:

Storage:failed to open file
'/users/colinholtkamp/Documents/OpenSim/4.0/Models/Gait10dof18musc/CMC/ResultsCMC/ResultsCMC/walk_subject_pErr.sto'
verify that the file exists at the specified location.
Thrown at Storage.cpp:181 in Storage()

Im sure this is an elementary mistake. Could your please point me in the right direction in order to resolve this issue? Thanks!

Colin H.

Re: Trouble Plotting Results with CMC Plotting Script

Posted: Sun Jun 16, 2019 2:20 am
by mitkof6
Make sure that file:

/users/colinholtkamp/Documents/OpenSim/4.0/Models/Gait10dof18musc/CMC/ResultsCMC/ResultsCMC/walk_subject_pErr.sto

exists. If it does not exist, then change the .py script (https://github.com/opensim-org/opensim- ... lts.py#L30) so that it points to the correct file path.

Re: Trouble Plotting Results with CMC Plotting Script

Posted: Mon Jun 17, 2019 10:24 am
by choltkamp1
Got it figured out. Thanks for the help. It looks like I just had to alter the file path to make it work.