get_joint_type()
  • 1 Minute to read

get_joint_type()


Article summary

Get the type of a joint in a given arm on the current robotic device.

Reference

Arguments

ArgumentsTypeDescription
armstrName of the arm.
jointstrName of the joint.

Return

TypeDescription
ARMS_JOINT_TYPEenumeration value of the joint type.

Exceptions

  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsInvalidJointName

See the complete list of arms exceptions

Usage example

...
self.arms = self.enable_controller('arms')
...
joint_type = self.arms.get_joint_type('left_arm' , 'arm_left_shoulder_rail_joint')
self.log.info(joint_type)
...

Output:

ARMS_JOINT_TYPE.LINEAR

Was this article helpful?