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
Ingnored state_init_file with OpenSim4 models
- Andrés Hidalgo
- Posts: 14
- Joined: Wed Jun 09, 2021 2:52 pm
- Thomas Geijtenbeek
- Posts: 445
- Joined: Wed Mar 12, 2014 8:08 am
Re: Ingnored state_init_file with OpenSim4 models
It works for me (only tried the .zml file). Which version of SCONE are you using?
- Andrés Hidalgo
- Posts: 14
- Joined: Wed Jun 09, 2021 2:52 pm
Re: Ingnored state_init_file with OpenSim4 models
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
}
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
}
- Thomas Geijtenbeek
- Posts: 445
- Joined: Wed Mar 12, 2014 8:08 am
Re: Ingnored state_init_file with OpenSim4 models
Did you try exporting a .zml file from the Coordinate Editor? That should show the correct DOF names.