Page 1 of 1
Add contact force as reflex
Posted: Thu Sep 29, 2022 3:00 am
by vahid34
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
Re: Add contact force as reflex
Posted: Thu Sep 29, 2022 5:56 am
by tgeijten
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.
Re: Add contact force as reflex
Posted: Wed Oct 05, 2022 3:17 am
by vahid34
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
Re: Add contact force as reflex
Posted: Wed Oct 05, 2022 5:46 am
by tgeijten
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