rebot_control.calib.tcp

TCP position by pivot calibration.

The tool tip is put in a fixed point (a small dimple or a cone in a block fixed to the table) and the arm is moved by hand (gravity mode) through several orientations around it. For every recorded flange pose (p_i, R_i):

R_i t + p_i = c        (t: tip in the flange frame, c: the pivot point in the base frame)

which is linear in (t, c): [R_i  -I] [t; c] = -p_i, solved by least squares. The residual tells how well the tip stayed in the dimple. Orientations should spread over at least 30-40 degrees in two directions.

Only the TCP position is identified; the TCP orientation stays as configured in the tool YAML.

Module Contents

Classes

Functions

solve_pivot

Least-squares pivot solution from flange poses (positions (N, 3), rotations (N, 3, 3)).

collect_pivot

Interactive: gravity mode, the user places the tip in the dimple and presses Enter for each pose.

API

class rebot_control.calib.tcp.PivotFit
tcp_xyz: numpy.ndarray = None
pivot: numpy.ndarray = None
rms: float = None
max_err: float = None
spread_deg: float = None
summary() → str
rebot_control.calib.tcp.solve_pivot(positions: numpy.ndarray, rotations: numpy.ndarray) → rebot_control.calib.tcp.PivotFit

Least-squares pivot solution from flange poses (positions (N, 3), rotations (N, 3, 3)).

rebot_control.calib.tcp.collect_pivot(arm, n_poses: int = 8, average_s: float = 0.3, prompt: collections.abc.Callable[[str], str] = input, progress: collections.abc.Callable[[str], None] = print) → tuple[numpy.ndarray, numpy.ndarray]

Interactive: gravity mode, the user places the tip in the dimple and presses Enter for each pose.