Mode Selection in Select Measures

SCONE is a software tool for predictive simulations of biomechanical movement. It uses OpenSim for modeling and simulation, and performs optimization using various control strategies, including feed-forward control, proprioceptic feedback control, and bal
POST REPLY
User avatar
Eric Hu
Posts: 44
Joined: Tue Oct 03, 2023 1:56 pm

Mode Selection in Select Measures

Post by Eric Hu » Sun Jan 12, 2025 4:30 pm

Hi Dr. Geijtenbeek,

I was wondering if you could explain how to use the mode feature in measures such as JointLoadMeasure. I want to minimize the peak of the joint loads but I see that the range for the average was taken to be used for measure calculations. I replaced the mode to be 1 since the default was given a 0 (thinking it was a boolean), but I was given this error:

" Could not convert "1" to enum scone::penalty_mode"

Is there a workaround for this or am I misunderstanding what the parameter means?

Thank you,
Eric

User avatar
Thomas Geijtenbeek
Posts: 473
Joined: Wed Mar 12, 2014 8:08 am

Re: Mode Selection in Select Measures

Post by Thomas Geijtenbeek » Mon Jan 13, 2025 1:59 am

My apologies, the documentation was not up-to-date. You should use:

Code: Select all

mode = highest
I have fixed the documentation:

https://scone.software/doku.php?id=ref:range_penalty

POST REPLY