Skip to main content

Module conveyor

Module conveyor 

Source
Expand description

Picking from a moving belt conveyor: parts ride on a belt through a pick window; the tool meets each part with the belt’s speed, moves with it while the gripper closes, lifts off and places it at a fixed place or onto a second moving belt. Works on any machine whose tool axes are Cartesian positions (a delta, a gantry), through the tool pose alone; all vectors are tool poses or tool velocities, one value per axis (0 on a rotation axis).

Every move of a pass is a superposition: a jerk-limited straight move (profile::Move) from where the phase starts to a point Q, plus a belt term whose velocity blends from the start velocity va to the end velocity vb as va + (vb - va) h(u), h(u) = 3u^2 - 2u^3, u = t / T: zero acceleration at both ends, so the phases join without a jump in acceleration. The belt term covers T (va + vb) / 2; a target that moves with vb is met at T when Q = target(0) + T (vb - va) / 2. The move is planned with each axis’s limits less what the belt term takes (max(|va|, |vb|) of the speed, 1.5 |vb - va| / T of the acceleration, 6 |vb - va| / T^2 of the jerk), and T is the shortest time in which the move to that Q fits (intercept).

While the belt is still on its ramp the part speeds up: the intercept then meets it where it is at T with its speed at T (intercept_moving), and the grip follows the belt’s own motion (Track). The acceleration of the setpoint steps by the belt’s (speed / ramp) where the grip begins and ends.

With input shaping the setpoint is the plan’s weighted copies (Controller::shape): a plan at the belt’s speed arrives the mean of the shaper’s delays behind, and on the part only once the whole shaper has passed. So a pass plans for the part that far ahead on each axis, and its grip and release are longer by the shaper’s span; the grip as Pass::holds and Conveyor::gripping count it begins once the shaped setpoint is on the part.

Structs§

Conveyor
The conveyor of [conveyor] and how far it has got: the parts picked and missed so far.
Pass
One pick and place, from rest to rest, beginning at the absolute time start.

Functions§

intercept
The shortest time T in which the tool, at from with velocity va, meets a target that is at target now and moves with vb, arriving with its velocity: T, and the move to Q = target + T (vb - va) / 2 that the belt term goes on top of (see the module). Searched by bisection on T, since the move’s limits depend on T; at once where va == vb. None where no T up to 1000 s fits, or the belt term alone breaks an axis’s limits.
intercept_moving
intercept for a target that is at target(T) with the velocity there after T seconds (a part on a belt that still speeds up): T, the move, and the target’s velocity at T. The move goes to Q = target(T) - T (va + vb(T)) / 2.