Description
|
Retrieves the linear/angular position of a joint. This function cannot be used with spherical joints (use sim.getObjectChildPose instead). See also sim.setJointPosition |
C/C++ synopsis
|
simInt simGetJointPosition(simInt objectHandle,simFloat* position)
|
C/C++ parameters |
objectHandle: handle of the joint
position: linear/angular position of the joint
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
float position=sim.getJointPosition(int objectHandle)
|
Lua parameters |
objectHandle: handle of the joint |
Lua return values
|
position: linear/angular position of the joint |
Python synopsis |
float position=sim.getJointPosition(int objectHandle) |