Saved poses
This file presents the different Saved poses - Command functions, available with the Saved poses API
Saved poses - Command functions
This section reference all existing functions to control your robot, which include
Management of saved poses
All functions to control the robot are accessible via an instance of the class NiryoRobot
robot = NiryoRobot(<robot_ip_address>)
pose_name_list = robot.saved_poses.get_saved_pose_list()
robot.saved_poses.get_pose_saved(pose_name_list[0])
...
See examples on Examples Section
List of functions subsections:
Saved poses functions
- class SavedPoses(client)[source]
- get_pose_saved(pose_name)[source]
Get pose saved in from Ned’s memory
Examples:
pose = saved_poses.get_pose_saved("pose1")
- Parameters
pose_name (str) – Pose name in robot’s memory
- Returns
Pose associated to pose_name
- Return type
- save_pose(pose_name, *args)[source]
Save pose (x, y, z, roll, pitch, yaw) in robot’s memory
Examples:
saved_poses.save_pose("pose1", 0.3, 0.0, 0.3, 0.0, 1.57, 0.0) saved_poses.save_pose("pose1", [0.3, 0.0, 0.3, 0.0, 1.57, 0.0]) saved_poses.save_pose("pose1", PoseObject(0.3, 0.0, 0.3, 0.0, 1.57, 0.0))