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
Ground reaction Force
- Thomas Geijtenbeek
- Posts: 450
- Joined: Wed Mar 12, 2014 8:08 am
Re: Ground reaction Force
Did you try the body "calcn_r"?
- Samane Amini
- Posts: 101
- Joined: Sun Jan 12, 2020 3:48 am
Re: Ground reaction Force
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?
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.
- Samane Amini
- Posts: 101
- Joined: Sun Jan 12, 2020 3:48 am
Re: Ground reaction Force
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
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