Dynamic Walker Model initial walking parameters- model is not walking

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Mainak Chakraborty
Posts: 11
Joined: Tue Mar 01, 2022 8:10 pm

Dynamic Walker Model initial walking parameters- model is not walking

Post by Mainak Chakraborty » Tue May 24, 2022 11:14 pm

In Dynamic Walker Challenge, I have built the model step-by-step as shown in the tutorial. However, the model is not walking. It is falling behind. I have done forward simulation(0-2s) as shown, still the model is not walking. I have run the Designmainstarter.m script it is not walking. I think I need to change the initial parameters, but there is no template of initial parameters given. Where am I doing wrong?

Tags:

User avatar
Carmichael Ong
Posts: 393
Joined: Fri Feb 24, 2012 11:50 am

Re: Dynamic Walker Model initial walking parameters- model is not walking

Post by Carmichael Ong » Wed May 25, 2022 12:03 pm

The last paragraph on the example page states that the default values will not produce a walk.

In DesignMainStarter.m, Line 32 appears to be where initial conditions can be changed:

Code: Select all

%% Define the intial coordinate values and speeds for the model. Translations
% coordinates are in meters, rotations are in radians.
pelvisTYValue = 0.8350;
pelvisTYSpeed = 0;
pelvisTXValue = 0;
pelvisTXSpeed  = 0;
rHipValue = deg2rad(30.0);
rHipSpeed = deg2rad(0);
lHipValue = deg2rad(-10);
lHipSpeed = deg2rad(0);
rKneeValue = deg2rad(-30.0);
rKneeSpeed = deg2rad(0);
rKneeValue = deg2rad(-30.0);
rKneeSpeed = deg2rad(0);

User avatar
Mainak Chakraborty
Posts: 11
Joined: Tue Mar 01, 2022 8:10 pm

Re: Dynamic Walker Model initial walking parameters- model is not walking

Post by Mainak Chakraborty » Thu May 26, 2022 5:27 am

Hi,
This is exactly where I am struck.
Where do I get the initial conditions ? Is there any template files available?
Please suggest.
Thanks

User avatar
Carmichael Ong
Posts: 393
Joined: Fri Feb 24, 2012 11:50 am

Re: Dynamic Walker Model initial walking parameters- model is not walking

Post by Carmichael Ong » Thu May 26, 2022 5:53 pm

I am not aware of template files. My understanding is that you can adjust these values in the .m file, which will set the initial conditions for the next simulation, and the goal of the challenge is to find the values that will lead to a stable walk.

User avatar
Thomas Uchida
Posts: 1792
Joined: Wed May 16, 2012 11:40 am

Re: Dynamic Walker Model initial walking parameters- model is not walking

Post by Thomas Uchida » Fri May 27, 2022 4:26 pm

There's an example (in Python) on GitHub, under Bindings/Python/examples:
- dynamic_walker_example_optimization.py (https://github.com/opensim-org/opensim- ... ization.py)
- dynamic_walker_example_model.osim (https://github.com/opensim-org/opensim- ... model.osim)
You might look there for differences in model parameters and/or initial conditions. If I recall correctly, it doesn't take that script very long to get the model to walk.

POST REPLY