simSetJointPosition

Sets the linear/angular position of a joint. Cannot be used with spherical joints (use sim.setObjectChildPose instead)

C++ synopsis

int simSetJointPosition(int objectHandle, double position)

Arguments

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

Return

  • -1 if operation was not successful


See also: