Page 1 of 1

Inverse Dynamics of emergency brake

Posted: Tue Dec 15, 2020 9:20 am
by yanlonggao
Hello everyone,

I'm using Gait 2354 to analyse driver's lower body movement during emergency brake. Scaling and IK were done. But I got stuck by Inverse Dynamics with .mot file, since I only have the magnitude of the brake force, but not force position and force direction. Thus, I have to create a .mot file by my self to excute the ID.

So I wanted to use this workaround: create a new Marker on the middle of the ball of foot, which could be assumed to be the contact point on brake pedal, and export its trajectory (in global axis system) as the force position in .mot. Then combine this .mot with the force data.

But I cannot find any option in OpenSim to export trajectory of a marker.

Do I need MATLAB API to do this? Maybe you have a much better solution. Thank you very much.

A picture of my model is attached.

Best regards,
Yanlong

Re: Inverse Dynamics of emergency brake

Posted: Wed Dec 16, 2020 3:14 pm
by ongcf
I'm not sure if this is what you're looking for, but perhaps instead of finding the point's location in the global (ground) frame, you can just provide a point (and possibly also force) in the frame of the foot. When you're loading an ExternalForce file, you can change what the Force and Point are expressed in:
externalforcegui.png
externalforcegui.png (10.72 KiB) Viewed 252 times

Re: Inverse Dynamics of emergency brake

Posted: Mon Dec 21, 2020 8:13 am
by yanlonggao
Hi Carmichael,

thanks for your reply!

I'm not sure if I understand it correctly: I can load a external force file in .mot WITHOUT specification of the force position (i.e. force_px, force_py, force_pz), then edit it to apply on a body part (like toe or calcaneus)? I'll definetly try this.

Before I got this reply, I also tried another method. There is indeed a workaround to export a certain manually modeled marker in .sto by using "Tools->Analyze->Analyses->Add->PointKinematics", like this:
Analyses.PNG
Analyses.PNG (53.59 KiB) Viewed 176 times
It then can be merged in the external force .mot file.

Best regards
Yanlong