Trouble Plotting Results with CMC Plotting Script

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Colin Holtkamp
Posts: 10
Joined: Tue Jan 22, 2019 10:44 am

Trouble Plotting Results with CMC Plotting Script

Post by Colin Holtkamp » Sat Jun 15, 2019 4:03 pm

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 238 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.

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Trouble Plotting Results with CMC Plotting Script

Post by Dimitar Stanev » Sun Jun 16, 2019 2:20 am

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.

User avatar
Colin Holtkamp
Posts: 10
Joined: Tue Jan 22, 2019 10:44 am

Re: Trouble Plotting Results with CMC Plotting Script

Post by Colin Holtkamp » Mon Jun 17, 2019 10:24 am

Got it figured out. Thanks for the help. It looks like I just had to alter the file path to make it work.

POST REPLY