is_linear_joint()
  • 1 Minute to read

is_linear_joint()


Article summary

Retrieves If a joint in a given arm on the current robotic device is linear.

Reference

Arguments

ArgumentsTypeDescription
armstrName of the arm.
jointstrName of the joint.

Return

TypeDescription
boolTrue if it Is a linear joint.

Exceptions

  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsInvalidJointName

See the complete list of arms exceptions

Usage example

...
self.arms = self.enable_controller('arms')
...
is_rotational = self.arms.is_linear_joint('left_arm' , 'arm_left_shoulder_rail_joint')
self.log.info(is_rotational)
...

Output:

True

Was this article helpful?