Add contact force as reflex

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
vahid F
Posts: 19
Joined: Mon Jul 23, 2018 8:02 am

Add contact force as reflex

Post by vahid F » Thu Sep 29, 2022 3:00 am

Hi SCONE users,

I'm wondering if we can use contact force as reflex in muscles. If it is doable, can you help me how to do that?

Best

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

Re: Add contact force as reflex

Post by Thomas Geijtenbeek » Thu Sep 29, 2022 5:56 am

This is definitely possible, but a new reflex type would have to be implemented in SCONE.

At this moment, contact force is only available for state transition in the GaitStateController.

User avatar
vahid F
Posts: 19
Joined: Mon Jul 23, 2018 8:02 am

Re: Add contact force as reflex

Post by vahid F » Wed Oct 05, 2022 3:17 am

Hi Thomas,

Thank you for your response,
Is it possible to implement it using script controller? Do you have any comment regarding the implementation?

Best

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

Re: Add contact force as reflex

Post by Thomas Geijtenbeek » Wed Oct 05, 2022 5:46 am

It is definitely possible to do this via a ScriptController, the most difficult part is simulating the neural delay. Without neural delay, it is rather straightforward to do, using LuaBody:contact_force() and LuaMuscle:add_input().

The script tutorials should contain enough information to get you started (along with the reference manual):

https://scone.software/doku.php?id=tutorials:script

POST REPLY