Ground reaction Force

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
Samane Amini
Posts: 101
Joined: Sun Jan 12, 2020 3:48 am

Ground reaction Force

Post by Samane Amini » Mon Oct 02, 2023 12:52 am

Hi

I want to know if how to get ground reaction force in script controller. I did the following code:

body = model:find_body("toes_r")
GRF = body:contact_force()

but there is no GRF for only toes_r (without ground or platform mentioning), then the answer is zero. So how can I get the ground reaction force for right and left leg?

Thanks in advance

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

Re: Ground reaction Force

Post by Thomas Geijtenbeek » Fri Oct 06, 2023 2:27 am

Did you try the body "calcn_r"?

User avatar
Samane Amini
Posts: 101
Joined: Sun Jan 12, 2020 3:48 am

Re: Ground reaction Force

Post by Samane Amini » Sat Oct 07, 2023 12:57 am

Hi

I did it. No effective. I use this code to get the result of GRF:

function store_data(frame)
frame:set_value("GRF",GRF)
end

Is it true?
Last edited by Samane Amini on Thu Oct 12, 2023 3:16 am, edited 1 time in total.

User avatar
Samane Amini
Posts: 101
Joined: Sun Jan 12, 2020 3:48 am

Re: Ground reaction Force

Post by Samane Amini » Thu Oct 12, 2023 3:16 am

Hi Thomas

I changed the name of body to calcn_r but ground reaction force is still zero, while it isn't.

body = model:find_body("calcn_r")
GRF = body:contact_force()

Could you pls guide me how to get ground reaction force?

best

POST REPLY