I have created a joint on a robot that can successfully rotate if I give it a velocity in the prperties window. What I want to do is to tell the joint to rotate to a specific angle. I found the function
Code: Select all
simRMLMoveToJointPositions(table jointHandles,number flags,table currentVel,table currentAccel,table maxVel,table maxAccel,table maxJerk,table targetPos,table targetVel,table direction)
The problem is I don't understand how to use it.
I created a threaded script as required and made it execute this function with following parameters. res = simRMLMoveToJointPositions(lMTalbe,-1,{0},{0},{30},{2},{80},{-math.pi/2},nil,nil); The joint has initialy no velocity and I want it to rotate to a specific angle with the above maxVelocity and maxAcceleration but nothing happens.
Could you elaborate on how this function is used, please?
Regards!