Python Joint Control
Posted: Mon Nov 26, 2018 6:14 am
Hey people!
I would have a quick question. I manage to retrieve the jointSet of the model through model.getJointSet().
Then I manage to find different joints, for example the shoulder-arm joint through: jointset.get(x) (x is the index of the joint). This returns me a Joint type object.
I would like to ask how could I modify this joints coordinates? For example it has an 'arm_add_r' coordinate which moves the arm upside. And then display this result on the screen?
At the moment I am displaying the result through:
model.getVisualizer().show(model.state)
manager.integrate(10)
P.S: Also during this manager.integrate my model is falling downwards, exiting the screen. Why is it happening?
THANK YOU!
I would have a quick question. I manage to retrieve the jointSet of the model through model.getJointSet().
Then I manage to find different joints, for example the shoulder-arm joint through: jointset.get(x) (x is the index of the joint). This returns me a Joint type object.
I would like to ask how could I modify this joints coordinates? For example it has an 'arm_add_r' coordinate which moves the arm upside. And then display this result on the screen?
At the moment I am displaying the result through:
model.getVisualizer().show(model.state)
manager.integrate(10)
P.S: Also during this manager.integrate my model is falling downwards, exiting the screen. Why is it happening?
THANK YOU!