get_list_predefined_poses()
  • 1 Minute to read

get_list_predefined_poses()


Article summary

get_list_predefined_poses()

Retrieve all the predefined poses that the arm can be set to.

Reference

Arguments

ArgumentTypeDefault value
armstrName of the arm whose predefined poses will be returned.

Return

List with the name of each predefined pose for the specified arm.

Exceptions

ExceptionCondition
RayaArmsExceptionException from arms method.
RayaArmsControllerNotReadyArms controller not yet ready.

See the complete list of Raya Exceptions.

Examples

...
self.arms = self.enable_controller('arms')
...
right_arm_predefined_poses = self.arms.get_list_predefined_poses('right_arm')
print(right_arm_predefined_poses)
...

Output

['right_arm_home', 'pre_step_1', 'pre_step_2', 'pre_step_3', 'nav_with_object0', 'nav_with_object', 'nav_with_object1', 'nav_with_object2']

Was this article helpful?