Ingnored state_init_file with OpenSim4 models

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
Andrés Hidalgo
Posts: 14
Joined: Wed Jun 09, 2021 2:52 pm

Ingnored state_init_file with OpenSim4 models

Post by Andrés Hidalgo » Thu Jul 07, 2022 3:33 am

Hello:
I am trying to change the initial position of my OS4 model using the state_init_file but .sto either .zml are working. Both files are ignored. Is state_init_file feature working with OpenSim4 models?

Best regards

Andres

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

Re: Ingnored state_init_file with OpenSim4 models

Post by Thomas Geijtenbeek » Thu Jul 07, 2022 4:20 am

It works for me (only tried the .zml file). Which version of SCONE are you using?

User avatar
Andrés Hidalgo
Posts: 14
Joined: Wed Jun 09, 2021 2:52 pm

Re: Ingnored state_init_file with OpenSim4 models

Post by Andrés Hidalgo » Thu Jul 07, 2022 6:38 am

The version is 2.0.5.2378.
It coud be that I am using a CustomJoint? I have triend with .zml also but the initial position is not modified.
The dof I want to initialize is called "lumbar_extension" and located in OpenSim4 model"/jointset/back/lumbar_extension/value". Thus, I tried with two .zml versions but they do not show any effect on the initial conditions. These are the versions of the .zml files

Version 1
values {
lumbar_extension = 0.1745
}
velocities {
lumbar_extension = 0.0
}
=======================
Version 2
values {
/jointset/back/lumbar_extension/value = 0.1745
}
velocities {
/jointset/back/lumbar_extension/speed = 0.0
}

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

Re: Ingnored state_init_file with OpenSim4 models

Post by Thomas Geijtenbeek » Thu Jul 07, 2022 7:24 am

Did you try exporting a .zml file from the Coordinate Editor? That should show the correct DOF names.

POST REPLY