simGetJointPosition

Retrieves the linear/angular position of a joint. This function cannot be used with spherical joints (use sim.getObjectChildPose instead)

C++ synopsis

int simGetJointPosition(int objectHandle, double* position)

Arguments

  • objectHandle: handle of the joint
  • position: linear/angular position of the joint

Return

  • -1 if operation was not successful


See also: