pylabrobot.paa.kx2.KX2.__init__#

KX2.__init__(has_rail: bool = False, has_servo_gripper: bool = True, interface: str | None = None, channel: str | None = None, bitrate: int = 500000, gripper_length: float = 0.0, gripper_z_offset: float = 0.0, gripper_finger_side: Literal['barcode_reader', 'proximity_sensor'] = 'barcode_reader', barcode_port: str | None = None, barcode_baudrate: int = 9600, parking_position: Dict[Axis, float] | None = None) → None#
Parameters:
  • has_rail (bool) – True if the arm is mounted on the optional linear rail (axis 5).

  • has_servo_gripper (bool) – True if a servo-driven plate gripper is on the bus (axis 6).

  • interface (str | None) – python-can adapter name. Defaults to SocketCAN on Linux and PCAN on other platforms.

  • channel (str | None) – python-can channel; None lets the interface pick its default.

  • bitrate (int) – CAN bitrate in bit/s (default 500 kbit/s).

  • gripper_length (float) – distance from the wrist axis to the gripper’s grip center (geometric midpoint of the jaws) in mm. Non-negative; the side is encoded in gripper_finger_side, not the sign.

  • gripper_z_offset (float) – vertical offset from the wrist plate to the grip center in mm. Positive = grip center below the wrist plate.

  • gripper_finger_side (Literal['barcode_reader', 'proximity_sensor']) – which finger is treated as the gripper’s “front”. The world yaw reported by request_gripper_pose() (and the yaw accepted by move_to_location()) points at this finger. Flipping side is a 180° relabel of which finger is “front” — for the same joints the grip center is unchanged and only the reported yaw shifts by 180°.

  • barcode_port (str | None) – optional serial port of the onboard barcode reader. When set, setup() brings it up and scan_barcode() is usable.

  • barcode_baudrate (int) – barcode-reader serial baud rate.

  • parking_position (Dict[Axis, float] | None)

Return type:

None