hylo.manip.grasping¶
Package: hylo-manip · Core contracts
grasping ¶
Grasp candidates for a parallel hand from an object's points: top-down across the narrow side (and the long side when it fits), side grasps from the robot's side, each checked for width, antipodal support and hand collisions.
Candidate
dataclass
¶
hand_collides ¶
hand_collides(T: ndarray, hand_pts: ndarray, table: Table, tree: cKDTree | None, margin: float = 0.004, table_clearance: float = 0.002) -> str | None
grasp_candidates ¶
grasp_candidates(box: Box, points: ndarray, table: Table, hand_pts: ndarray, max_width: float, base_xy: ndarray, R_now: ndarray | None = None, scene: ndarray | None = None, depth: float = 0.03, pre_dist: float = 0.1, clearance: float = 0.008, pad_half: float = 0.015) -> list[Candidate]
Ranked candidates. hand_pts: hand surface in the TCP frame with the fingers open. depth: how far below the
object's top the TCP goes at most (half the height for short objects).