Page 1 of 1

How to get joint angle in LUA script?

Posted: Mon Jun 19, 2023 3:26 am
by marcohan98
Dear Dr. Thomas Geijtenbeek:
Thank you for your time on replying first.
Recently I'm scripting a controller for sit-to-stand motion. I'd like to know if there is any LUA function that can access the joint angle in the model? Thus I will detect different phases during the STS motion through hip angle.
Thank you for replying!
Regard,
marco

Re: How to get joint angle in LUA script?

Posted: Fri Jun 23, 2023 1:52 am
by marcohan98
Dear Thomas Geijtenbeek:
I think use model:find_dof():position solves my question.
Thanks for the reference manual :)
Regard,
marco