Skip to main content

Module spatial

Module spatial 

Source
Expand description

Delta picker D3 (Clavel): three motor-driven arms at 120 degrees on a base, each carrying a parallelogram of two forearms down to a platform that stays level. The tool is the platform’s centre, x, y, z.

Kinematics per leg i at azimuth phi_i, with e = base radius - platform radius (the platform’s offset folded into the base, as the platform never turns), the arm angle theta_i (0 horizontal, positive down), upper arm L_a, forearm L_b:

elbow     c_i = R_z(phi_i) (e + L_a cos theta, 0, -L_a sin theta)
constraint |p - c_i|^2 = L_b^2
inverse   A cos theta + B sin theta + C = 0, A = -2 L_a (x' - e), B = 2 L_a z, C = (x' - e)^2 + y'^2 + z^2 + L_a^2 - L_b^2
          theta = 2 atan((-B - sqrt(A^2 + B^2 - C^2)) / (C - A))     (elbow out; (x', y', z) = R_z(-phi_i) p)
forward   p = the lower of the two points at L_b from all three elbows (trilateration)
Jacobian  J_x p' = J_q theta', J_x rows u_i = p - c_i, J_q = diag(u_i . dc_i/dtheta_i); p' = J theta', J = J_x^-1 J_q
          J_x p'' = J_q theta'' + w, w_i = theta_i'^2 (u_i . c_i'') - |p' - c_i' theta_i'|^2

Dynamics (Codourey 1998 as used by Olsson 2009): the forearms’ rotational inertia is left out and each forearm pair’s mass m_fb split, a share r at the elbow (it turns with the arm) and 1 - r at the platform. Then the machine is three arms about their joints plus a point mass at the platform, m_nt = platform + payload + 3 (1 - r) m_fb, and by virtual work

M(theta) theta'' = tau_gear + Q_g - m_nt J^T J_x^-1 w + tau_joint,   M = I_b 1 + m_nt J^T J
I_b = I_arm + L_a^2 (m_elbow + r m_fb),   Q_g,i = g m_LG cos theta_i - m_nt g J_zi,   m_LG = m_arm l_cg + L_a (m_elbow + r m_fb)

exact for that model: the platform’s kinetic energy m_nt |J theta’|^2 / 2 is what M holds, and the velocity term is the platform’s m_nt J’theta’ through J^T.

With effects.forearm_inertia each forearm pair is a rigid slender rod instead (the two rods of a pair move alike, the platform never turning): its kinetic energy (m/6)(|c’|^2 + c’.p’ + |p’|^2) is exactly that of m/6 at each end and 2m/3 at its middle, so the rod is m_fb/6 at the elbow, m_fb/6 at the platform and 2 m_fb/3 at its middle (c_i + p)/2, whose Jacobian J_m,i = (J + dc_i/dtheta e_i^T)/2 adds m_mid J_m^T J_m to M, its acceleration at no arm acceleration (J_x^-1 w + c_i’’ theta_i’^2)/2 the velocity term and its weight to Q_g. The spin of a rod about its own axis is left out.

With effects.link_elasticity each upper arm bends (in the plane it turns in): the elbow turns by delta_i against the arm’s root, on a spring k_b = 3 E I / L_a (a cantilever’s tip deflection as a turn about the shoulder) with a damper. The arm’s tube stays with the root (I_arm, m_arm l_cg), the elbow and all beyond move with the elbow angle theta + delta: I_arm theta’’ = tau_gear + g m_arm l_cg cos theta + k_b delta + c_b delta’ + tau_joint, and the rest of the machine as above at the elbow angles with the spring’s -k_b delta - c_b delta’ in place of the gearbox. With effects.arm_tube_inertia as well the tube bends in the static shape of a cantilever under a tip load, psi = (3 xi^2 - xi^3) / 2 (psi(L_a) = 1), the mode consistent with k_b (Rayleigh; beam::STATIC_SHAPE_MASS): the tube is as much of the arm’s mass as its inertia allows a uniform tube, m = min(m_arm, 3 I_arm / L_a^2), the rest a hub on the shoulder’s axis. Its kinetic energy, its sections at s theta’ + psi(s) L_a delta’, is m L_a^2 (theta’^2 / 3 + 2 int(xi psi) theta’ delta’ + int(psi^2) delta’^2) / 2, int(xi psi) = 11/40, int(psi^2) = 33/140: in theta and e = theta + delta, I_r theta’^2 / 2 + B theta’ e’ + 33/280 m L_a^2 e’^2 with B = (11/40 - 33/140) m L_a^2 and I_r = I_arm - 33/140 m L_a^2 - 2 B; 3/8 m L_a of its first moment (int psi) moves to the elbow. The joints’ equation takes the elbows’ solved, (I_r - B^2 (M_d^-1)_ee) theta’’ = f_r - B (M_d^-1 f_d)_e (joint_load), then M_d q’’ = f_d - B theta’’ on the elbows’ rows (bend_rates). Out of its plane 33/140 of the tube’s mass moves with the elbow’s move y, and the elbow block turns with the tube’s tip slope 3/2 y / L_a. Each joint is a RotaryJoint (gearbox with stiffness, backlash and efficiency, motor with friction, ripple and brake, joint friction, stops). Elastic (effects.joint_elasticity) the rotors are states of their own behind the gearboxes’ springs; rigid, each rotor turns with its arm times the ratio and its inertia counts at the arm times the ratio squared, the gearbox losing its efficiency on what passes through it.

Structs§

Delta
Legs
The leg geometry and the kinematics, apart from masses and drives.
PlatformDrag
A force on the platform against its motion along the line from a fixed point to a point on the platform: the sliding friction of a telescopic shaft hung from pivot and joined to the platform at offset from its centre (the fourth axis of a four-axis delta built on this crate). The D3 itself has none.

Functions§

arm_modes
The arms’ modes with the motors held (by their position loops): per arm the gearbox’s spring k_g from the motor to the arm’s root (inertia root, joined to its elbow by the tube’s coupling B; k_gear one per arm, each arm’s own gearbox), the bending spring k_b from the root to the elbow, and the rest of the machine as the mass matrix distal in the elbow angles and, where it is 6 x 6, the elbows’ moves out of the arms’ planes, each on its lateral spring k_l. None for a rigid spring (infinite stiffness: the two ends one body). The coordinates are (roots, elbow angles, elbow moves), the flexibility per arm K^-1 = [[1/k_g, 1/k_g], [1/k_g, 1/k_g + 1/k_b]] (root, elbow) and 1/k_l; with M = L L^T (Cholesky) the eigenvalues mu = 1/w^2 of the symmetric L^T K^-1 L, by Jacobi rotations, the shape v = K^-1 L z / mu. A rigid connection has mu = 0 and is no mode. Gravity’s stiffness (some N m/rad against 1e4) and the stops are left out. Returns w^2 and the shape per mode, lowest first.
condition_number
The 2-norm condition number of a 3 x 3 matrix: the square root of the largest over the smallest eigenvalue of J^T J, by the closed form for a symmetric 3 x 3 (trigonometric solution of the characteristic cubic).
cross
dot
inverse
The inverse of a 3 x 3 matrix by its adjugate; None where it is singular.
mul
norm
sub
transpose

Type Aliases§

M3
V3