Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

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
Ali Forouzanfar
Posts: 24
Joined: Thu Dec 15, 2022 11:21 pm

Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Ali Forouzanfar » Tue Jun 18, 2024 5:09 am

Hi everyone,

I am working with the scaled RajagopalLaiUhlrich2023 model and an improved RRA output model. I'm looking for guidance on how to represent these models in the Hyfydy format.

Specifically, I would appreciate any of the following:

Step-by-step instructions for converting these specific models to Hyfydy.

Tutorials or resources that demonstrate the conversion process for similar musculoskeletal models.

Example Hyfydy code snippets showcasing the representation of relevant model components (e.g., joints, muscles) based on the RajagopalLaiUhlrich2023 model.

Any help or insights on this matter would be greatly appreciated. Thank you!

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

Re: Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Thomas Geijtenbeek » Wed Jun 19, 2024 6:53 am

The model you mention is probably not suitable for predictive simulations with forward dynamics. It is best to use the models in the Examples and Tutorials folders as a starting point.

For more information, see:

https://scone.software/doku.php?id=doc:model

User avatar
Ali Forouzanfar
Posts: 24
Joined: Thu Dec 15, 2022 11:21 pm

Re: Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Ali Forouzanfar » Wed Jun 19, 2024 10:19 am

Thank you for your reply

To clarify my question, I'm looking for a 3D OpenSim model that would be suitable for forward dynamic simulations of walking and running. I'm planning to scale the chosen model using gait data of walking and running and then implement it in the Hyfydy format.

Specifically, I'd like to know:

Of the models Gait2354, Gait2392, and Rajagopal, which would be most appropriate for my needs, you mentioned the Rajagopal model might not be suitable for forward dynamics. Could you elaborate on why that is?

If none of these models are ideal, could you recommend any other OpenSim models that include hand dynamics and are suitable for forward dynamic simulations of walking and running?

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

Re: Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Thomas Geijtenbeek » Wed Jun 26, 2024 3:47 am

If you need an OpenSim version of the model only for scaling, then please note that you can also scale any Hyfydy model directly in SCONE. The most recent release has an example scenario on how to do this:

Gait2D - GeyerHerr2010 - Scaled - Hyfydy.scone

This scaling method works with any Hyfydy model.

For most Hyfydy models, there is an OpenSim equivalent, but they are not all up-to-date. Please let me know if any model in the Examples folder is suitable for your needs.

User avatar
Ali Forouzanfar
Posts: 24
Joined: Thu Dec 15, 2022 11:21 pm

Re: Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Ali Forouzanfar » Mon Jul 01, 2024 4:27 am

Thank you for your answer! Your guide to scaling in SCONE is correct, but I'm using OpenSim for both scaling and refining the model with RRA for forward dynamics analysis.

I noticed the H1922 model is similar to gait2354, and I haven't found other models that closely match its structure and my needed modifications. My plan is to modify gait2354 slightly to create an .hfd file compatible with SCONE, mainly by changing 23 degrees to 19 and muscle 54 to 22.

Do you think this is the most efficient approach, or are there other models already well-suited for this workflow? I'm open to other suggestions if you have any!

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

Re: Converting Scaled RajagopalLaiUhlrich2023 and Improved RRA Output Models to Hyfydy Format

Post by Thomas Geijtenbeek » Fri Jul 05, 2024 12:32 am

The question is what you want to do with your model. If your intention is to use a reflex-based gait controller, then using the H1922 model is the right way to go, since there already is a functioning reflex controller for that model. The easiest way to create an OpenSim version is probably to take the OpenSim version of the H0918 model, and add the missing DOFs and muscles to that. You'll only need to add a hip abductor and adductor.

POST REPLY