get_current_joint_position()
  • 1 Minute to read

get_current_joint_position()


Article summary

Retrieve the current joint position of a specific arm.

Reference

Arguments

ArgumentsTypeDefault valueDescription
armstrthe arm to retrieve the current pose for
jointstrName of the joint
unitsANGLE_UNITANGLE_UNIT.DEGREESunit for angles (DEGREES or RADIANS)

Return

TypeDescription
Floatthe current joint position.

Exceptions

  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsInvalidJointName

See the complete list of arms exceptions

Usage example

import json
...
self.arms = self.enable_controller('arms')
...
current_joint_position = await self.arms.get_current_joint_position(arm='right_arm', joint='arm_right_shoulder_rail_joint') 
self.log.info(current_joint_position)

...

Output:

0.0

Was this article helpful?