rebot_control.calib.poses

Calibration poses: random joint configurations that keep the arm and tool clear of the table and the base.

The clearance check is a simple kinematic one (no meshes): points along the segments between joint origins and the TCP must stay above table_z and outside a cylinder around the base. It is deliberately conservative; the pose list is printed before anything moves, and every move is a slow joint-space move with stall detection.

Module Contents

Functions

segment_points

is_clear

True when the arm + tool at q stays above the table and away from the base column.

path_is_clear

generate_poses

n random clear poses ordered as a short tour from start (every segment is also clear).

Data

API

rebot_control.calib.poses.DEFAULT_RANGES_DEG = 'array(...)'
rebot_control.calib.poses.segment_points(pts: numpy.ndarray, per_segment: int = 4) → numpy.ndarray
rebot_control.calib.poses.is_clear(model: rebot_control.model.RobotModel, q: numpy.ndarray, table_z: float = 0.04, base_radius: float = 0.09, base_height: float = 0.2, data=None) → bool

True when the arm + tool at q stays above the table and away from the base column.

rebot_control.calib.poses.path_is_clear(model: rebot_control.model.RobotModel, q0: numpy.ndarray, q1: numpy.ndarray, steps: int = 12, **kw) → bool
rebot_control.calib.poses.generate_poses(model: rebot_control.model.RobotModel, n: int, start: numpy.ndarray, rng: numpy.random.Generator | None = None, ranges_deg: numpy.ndarray | None = None, max_tries: int = 20000, **clear_kw) → numpy.ndarray

n random clear poses ordered as a short tour from start (every segment is also clear).