getting the force and position in force controller
Posted: Wed May 22, 2019 12:57 am
Hi dear all.
I was wondering how can i get the absolute position of two points on two different bodies at each time during forward simulation for use in controller written in c++?(for example can i put two marker on desired positions,and get the position of markers(x,y,z) at each time?If that is possible how can i do that?
and also how can i get the force produced by actuator during forward simulation at each time?(_model->getActuators().get(); is used to get the position of actuator but i need the force produced by actuator at each time.)
Best regards.
I was wondering how can i get the absolute position of two points on two different bodies at each time during forward simulation for use in controller written in c++?(for example can i put two marker on desired positions,and get the position of markers(x,y,z) at each time?If that is possible how can i do that?
and also how can i get the force produced by actuator during forward simulation at each time?(_model->getActuators().get(); is used to get the position of actuator but i need the force produced by actuator at each time.)
Best regards.