panda_autograsp.functions¶
Module containing a number of functions that are used by the
panda_autograsp
package.
functions.download_model (model[, …]) |
This function downloads the Pretrained CNN models that are used in the panda_autograsp package, when they are not yet present on the system. |
functions.list_files ([path, exclude, …]) |
Returns a list of files that are present in a folder. |
functions.yes_or_no (question[, add_options]) |
Simple yes or no prompt. |
functions.draw_axis (img, corners, imgpts) |
Takes the corners in the chessboard (obtained using cv2.findChessboardCorners()) and axis points to draw a 3D axis. |
moveit.get_trajectory_duration (trajectory) |
This function returns the duration of a given moveit trajectory. |
moveit.plan_exists (plan) |
This function can be used to check if a plan trajectory was computed. |
moveit.at_joint_target (current, desired, …) |
This function can be used to check if the move_group is already at the desired joint target. |
moveit.add_collision_objects (…) |
Add the collision objects that are specified in the collision_cfg collections.OrderedDict to the moveit planner scene. |
moveit.wait_for_state_update (…[, …]) |
Validate if collision object state change was successful. |
conversions.transform_stamped_2_matrix (…) |
Generate 4x4 homogeneous transformation matrix from a transform_stamped msg. |
conversions.pose_msg_stamped_2_matrix (pose_msg) |
Generate 4x4 homogeneous transformation matrix from a pose_stamped msg. |