Page 1 of 1

Inquiry About Applying External Forces Based on Specific Triggers in SCONE

Posted: Tue Jan 14, 2025 10:52 pm
by aoao
Dear Thomas,

I hope this email finds you well. My name is Aoi Yamamoto, a student from Japan currently researching how exoskeletons influence walking using SCONE.

I understand that the PerturbationController allows the application of external forces to arbitrary parts of the body. However, I would like to inquire whether it is possible to apply external forces based on specific triggers during the gait cycle. For instance, I would like to apply a forward-directed force of 10 N to the pelvis immediately after heel contact occurs during the walking motion.

If such functionality is available or if there is a way to implement this in SCONE, I would greatly appreciate your guidance. I apologize if this is a basic question, and I thank you in advance for your time and assistance.

Thank you for your time, and I look forward to your response.

Re: Inquiry About Applying External Forces Based on Specific Triggers in SCONE

Posted: Wed Jan 15, 2025 1:20 am
by tgeijten
You can use the ScriptController for that. You can use the contact_force() method on the foot body to detect the heel-strike / toe-off events, and then use the add_external_force() method on the pelvis to add the perturbation force.

You can check Tutorial 6c for inspiration, even though your script will probably more straightforward than that.