Page 1 of 1
How to make the joint to rotation in reverse direction?
Posted: 05 May 2020, 20:05
by suri
Hey,
I need to make joint to rotate in reverse direction, any documentation or API function(regulary API). I went through I did not find any API so.
Any solution
Thanks
Re: How to make the joint to rotation in reverse direction?
Posted: 06 May 2020, 07:41
by suri
Sloved. Thank you
Re: How to make the joint to rotation in reverse direction?
Posted: 29 Jan 2022, 08:14
by shreyas7738
Can you share how you solved it?
Re: How to make the joint to rotation in reverse direction?
Posted: 31 Jan 2022, 11:28
by coppelia
If your joint is in force/torque mode, the motor enabled, then simply do:
Code: Select all
sim.setJointTargetVelocity(jointHandle,vel) -- forward
sim.setJointTargetVelocity(jointHandle,-vel) -- reverse
Cheers
Re: How to make the joint to rotation in reverse direction?
Posted: 02 Feb 2022, 06:48
by shreyas7738
For revolute joint,if I put 10,will it be 10 rad/s or 10 degree/s?
Re: How to make the joint to rotation in reverse direction?
Posted: 02 Feb 2022, 08:15
by coppelia
the API uses rad, the GUI uses degrees!
Cheers