Expand description
Parallel SCARA: two motor-driven arms turning about vertical axes in the horizontal x-y plane, one at each side of
the base, each carrying a pair of forearms to a plate that keeps its orientation (a five-bar whose outer links are
parallelograms), as Mitsubishi’s RP series or the parallel SCARAs with a five-bar. At the plate an optional Z stroke
on a ball screw ([z_axis], motor 3) and an optional turn of the tool about z ([tool_turn], motor 4). The tool
pose is (x, y[, z][, c]).
The five-bar follows the D2’s (the planar delta picker), laid flat: the same equations, copied, as a machine crate may not use another’s. Leg i points along s_i x (s_1 = +1, s_2 = -1); e = base radius - platform radius (the plate’s offset folded into the base, as it never turns), the arm angle theta_i (0 along x, positive towards -y), upper arm L_a, forearm L_b:
elbow c_i = (s_i (e + L_a cos theta), -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 y, C = (x' - e)^2 + y^2 + L_a^2 - L_b^2
theta = 2 atan((-B - sqrt(A^2 + B^2 - C^2)) / (C - A)) (elbow out; x' = s_i x)
forward p = the one of the two points at L_b from both elbows further from the shoulders (two circles)
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'|^2Dynamics (Codourey 1998, Olsson 2009): each forearm pair’s mass split, a share r at the elbow and 1 - r at the plate; two arms about their joints plus a point mass at the plate, m_nt = plate + payload + 2 (1 - r) m_fb + what the plate carries (the Z and C units, the carriage), and
M(theta) theta'' = tau_gear - 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)Gravity acts along -z, out of the plane, on the joints’ bearings: it gives the arms no torque. Each arm’s joint is a
RotaryJoint, elastic or rigid (effects.joint_elasticity). The Z stroke and the tool’s turn are rigid
RotaryJoints from their motors’ own config ([motor.<id>], [gearbox.<id>]): the stroke’s nut lifts the
carriage, m_z q’’ = F - m_z g, the turn spins the tool, J_c c’’ = T. Both are perpendicular to the plane and about
its normal, so the plane’s motors feel their masses (in m_nt) and nothing else. With effects.joint_elasticity both
are elastic as the arms’ joints are (Extra): the rotor is a body of its own and the gearbox’s spring (the screw’s
and the coupling’s stiffness in series for the stroke) passes the force between rotor and carriage.
Structs§
- Legs
- The leg geometry and the kinematics, apart from masses and drives.
- Parallel
Scara
Constants§
- LOSSY_
EFFECTS - Effects that take energy out or put it in; the standard suite runs with them off. The stops stay, without their damping.
- SIDE
- The side each leg points to along x.
Statics§
Functions§
- condition_
number - The 2-norm condition number of a 2 x 2 matrix: the square root of the larger over the smaller eigenvalue of J^T J, m +- sqrt(((a - c) / 2)^2 + b^2) with m = (a + c) / 2 for J^T J = [[a, b], [b, c]].
- lossless_
config - The default config with every loss switched off.