How to get joint angle in LUA script?

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
marco xu
Posts: 20
Joined: Fri Nov 06, 2020 5:02 pm

How to get joint angle in LUA script?

Post by marco xu » Mon Jun 19, 2023 3:26 am

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

User avatar
marco xu
Posts: 20
Joined: Fri Nov 06, 2020 5:02 pm

Re: How to get joint angle in LUA script?

Post by marco xu » Fri Jun 23, 2023 1:52 am

Dear Thomas Geijtenbeek:
I think use model:find_dof():position solves my question.
Thanks for the reference manual :)
Regard,
marco

POST REPLY