pylabrobot.paa.kx2.KX2.move_through_waypoints#

async KX2.move_through_waypoints(waypoints: List[CartesianPose], *, speed: float, acceleration: float) → None#

Stream a smooth Catmull-Rom spline through waypoints.

The curve passes through every waypoint with C¹ continuity (no stop at intermediate waypoints). Tangents at each interior waypoint are derived from neighbours; endpoint tangents are extrapolated from the first/last segment. The whole spline is time-reparameterized into a trapezoidal arc-length profile with peak Cartesian speed speed (mm/s) and peak acceleration acceleration (mm/s²), then sampled at the IPM cadence.

Parameters:
  • waypoints (List[CartesianPose]) – at least 2 absolute Cartesian poses. The first should match the current pose closely (or the path will start with a Cartesian-linear segment to get there).

  • speed (float) – peak Cartesian speed along the spline, mm/s.

  • acceleration (float) – peak Cartesian acceleration, mm/s².

Raises:
  • ValueError – If there are fewer than two waypoints or speed/acceleration is not positive.

  • IKError – If any sample’s joints are out of range.

Return type:

None