Expand description
Tripod (3-RPS parallel mechanism): a platform on three electric cylinders of variable length, each a ball screw driven by its own servo motor through a coupling, with a revolute joint at the base and a spherical joint at the platform. Three degrees of freedom: the tool pose is the platform centre’s height z (m) and the platform’s tilts rx about x and ry about y (rad), as tilting tables, tool heads and motion bases use them.
Why 3-RPS: the legs are electric cylinders (one per motor, the motor in line with the screw), each on a trunnion at the base that lets it swing in the vertical plane through the base’s centre, and on a ball joint at the platform. The other common form, 3-PRS (three vertical slides carrying struts of fixed length, the Sprint Z3 head), has the same constraints and dependent motion; the cylinders of variable length are this crate’s form.
Geometry ([tripod]): base joints B_i = rb (cos t_i, sin t_i, 0) at t_i = 0, 120, 240 degrees, each revolute about
the tangent e_i = (-sin t_i, cos t_i, 0); platform joints a_i = rp (cos t_i, sin t_i, 0) in the platform frame. Leg
i’s length is L_i = leg.closed_length_m + q_i with q_i the cylinder’s extension, its joint coordinate.
orientation R = Rx(rx) Ry(ry) Rz(g): the pure tilt R0 = Rx(rx) Ry(ry), then a turn g about the platform's normal
constraints e_i . (p + R a_i) = 0 (each platform joint stays in its leg's plane), which for t_i = 0, 120, 240 are
R12 = R21, p_x = rp (R11 - R22) / 2, p_y = -rp R21, so in closed form (the dependent coordinates):
tan g = -sin rx sin ry / (cos rx + cos ry), p_x = rp (cos ry cos g + sin rx sin ry sin g - cos rx cos g) / 2,
p_y = rp cos ry sin g, p_z = z
inverse d_i = p + R a_i - B_i, L_i = |d_i|, q_i = L_i - L_closed (closed form)
twist xi = (v, w): G xi = (q', 0), G's rows (u_i, b_i x u_i) (legs) and (e_i, b_i x e_i) (constraints),
b_i = R a_i, u_i = d_i / L_i; A = the first three columns of G^-1: xi = A q'
rates x' = (z', rx', ry') = S xi: z' = v_z, rx' = w_x + tan ry (sin rx w_y - cos rx w_z),
ry' = cos rx w_y + sin rx w_z (w = rx' e_x + ry' Rx e_y + g' R0 e_z solved); K^-1 = S A
forward chord iterations x += K(home)^-1 (q - q(x)) from the centre of the box, which contract over the working
range (`chord_contraction`, docs/mechanisms.md); after the first, steps with K(x1)^-1 at that iterate
while each halves the legs' miss, else the chord again; until |q - q(x)| < 1e-13 m, refused (NaN)
where that takes more than 100 steps.
dynamics G xi' = (q'' - a0, -c0), a0_i = (|w_i|^2 - (u_i . w_i)^2) / L_i + u_i . (w x (w x b_i)),
w_i = v + w x b_i, c0_i = e_i . (w x (w x b_i)), so xi' = A q'' + beta, beta = G^-1 (-a0, -c0);
M_xi xi' + c + g = J^T f + C^T lambda with M_xi = [[m 1, -[s]x], [[s]x, I_p]], s = R s_b the first
moment about the centre, c = (w x (w x s), w x I_p w), g = (0, 0, m g, g s_y, -g s_x, 0); A^T takes
the constraint forces out (C A = 0) and A^T J^T = 1: M_q = A^T M_xi A, h = A^T (M_xi beta + c + g)f_i is the force leg i pushes the platform with: what its screw passes on (chain::JointMachine, one
joint::RotaryJoint with a transmission::BallScrew per leg). The payload is a body of its own mass and inertia
with its centre at mass.payload_offset_m in the platform frame.
Each leg is two bodies: the part on the platform joint (the rod and nut, mass leg.platform_share of leg.mass_kg,
its centre leg.platform_part_centre_m from the platform joint towards the base) and the part on the base joint
(cylinder and motor, the rest, its centre leg.base_part_centre_m from the base joint towards the platform), each
with its inertia about its own centre across the leg (leg.*_part_inertia_kgm2, 0 = a point mass). Both turn with
the leg’s direction u = d / L (in the leg’s plane). With d’ = v + w x b (the platform joint’s velocity) and
L’ = u . d’:
u' = (d' - u L') / L, L'' = u' . d' + u . d'', u'' = (d'' - 2 u' L' - u L'') / L (d'' = w x (w x b) at xi' = 0)
base part X = B + c u, X' = c u' = A_p xi, A_p = c A_u, A_u = (1 - u u^T) [1, -[b]x] / L
rod part X = P - c u, X' = P' - c u', A_p = [1, -[b]x] - c A_u, P = p + band with a0 the acceleration at xi’ = 0 (c u’’ for the base part, w x (w x b) - c u’’ for the rod part) each part
adds m A_p^T A_p + I_t A_u^T A_u to M_xi and m A_p^T (a0 + g e_z) + I_t A_u^T u’’ to c + g (d’Alembert; I_t about
the centre across the leg, whose turn is u x u’); the constraint forces drop out as for the platform. Each part’s
spin about the leg’s axis is free between the two joints and nothing excites it.
Structs§
- Geometry
- The tripod’s geometry and kinematics, apart from masses and drives.
- Legs
- The legs at a platform place: unit vectors u_i from base to platform joint, lengths L_i, and the platform joints’ offsets b_i = R a_i from the platform centre (base frame).
- Lu
- The LU factors of G (6 x 6) with partial pivoting, to solve G x = b for several b at the price of one elimination.
- Place
- Where the platform is at a tool pose (z, rx, ry): its centre p, its rotation R and the dependent turn g about its normal (the parasitic x, y are p’s).
- Tripod
Constants§
- LOSSY_
EFFECTS - Effects that take energy out or put it in; the standard suite runs with them off.
Statics§
Functions§
- lossless_
config - The default config with every loss switched off.