position: intrinsic position of the joint. This is a one-dimensional value: if the joint is revolute, the rotation angle is returned, if the joint is prismatic, the translation amount is returned, etc.
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
number position=sim.getJointPosition(number objectHandle)
objectHandle: handle of the joint
Lua return values
position: intrinsic position of the joint or nil in case of an error