Skip to main content

Crate machine_cable_robot

Crate machine_cable_robot 

Source
Expand description

Cable-driven parallel robots: a platform hung in cables, each cable wound on a winch driven by a servo motor through a gearbox. Two machines of the one model here:

  • cable-planar: a point-mass carriage in a vertical plane on 4 cables from the frame’s corners; tool x, z (m).
  • cable-spatial: a platform with 6 degrees of freedom on 8 cables from the corners of a box frame; tool x, y, z (m) and the orientation as a rotation vector rx, ry, rz (rad, in the base frame).

Kinematics. Each cable leaves its winch along the axis e_z of a swivelling pulley of radius r at the point A (frame.exits_m, frame.winch_directions), wraps it by the angle beta and runs straight from its exit point B to the platform’s anchor P = p + R a (platform.anchors_m). The pulley swivels about e_z into the plane of P:

d = P - A, gamma = atan2(d . e_y, d . e_x), e_u = cos gamma e_x + sin gamma e_y   (e_x towards the frame's centre)
in the pulley's plane (u along e_u, w along e_z): centre M = (r, 0), P = (d . e_u, d . e_z)
m = |P - M|, l_f = sqrt(m^2 - r^2), theta_B = atan2(P_w, P_u - r) - acos(r / m), beta = (theta_B - pi) mod 2 pi
L = r beta + l_f, u = (B - P) / l_f (the unit vector from the anchor to the exit point); dL/dP = -u

Statics. A cable pulls the platform with t u at its anchor: the structure matrix A (n x m) has the columns (u, b x u) restricted to the platform’s degrees of freedom, b = R a, and the cables hold a wrench w when A t = w with every tension between cable.min_tension_n and the rating cable.breaking_load_n / cable.safety_factor. Cables can only pull, so the tensions are distributed by a small QP (distribute): those nearest cable.reference_tension_n that hold the wrench within the band, which is the closed form t = t_ref + A^+ (w - A t_ref) wherever no cable sits at a bound, and changes continuously with the pose where one does. A pose whose platform weight (with payload) no tensions in the band hold is outside the wrench-feasible workspace and refused. The workspace of the poses is the static one (the weight at rest); the wrench of a cycle’s accelerations is held to the band by the time-optimal plan: Machine::rigid_tensions_moving gives each cable’s tension at a pose, speed and acceleration (the distribution for the wrench M xi’ + c + g), and Machine::tension_band gives the plan the band itself (cable.min_tension_n to the rating above, the one source; ratings.belt_*_tension_n are not read here), which it keeps them within with the share profile.tension_reserve of the room.

Dynamics. The platform (mass, inertia R I R^T about its centre, payload a point mass there) moves by its twist xi = (v, w): M xi’ + c + g = A t, c = (0, w x I_w w), g = (0, 0, m g, 0, 0, 0). Each winch is a joint::RotaryJoint in metres of cable: motor, gearbox with the drum’s radius as a lever (ratio i / r rad per m), the drum’s inertia as a mass J / r^2 at the cable, friction in its bearings and stops at its capacity. Elastic (effects.cable_stretch), the cable of free length l is a spring of potential V = EA (L - l)^2 / (2 l) while taut (none while slack): it pulls the platform with t = EA (L - l) / l, of stiffness EA / l, so that the stiffness changes over the workspace, and the drum with t (1 + (L - l) / (2 l)); with effects.cable_damping a damper of c / l (cable.specific_damping_n_s). Drum and rotor are bodies of their own behind the gearbox’s spring, as on every joint. Rigid, the cables do not stretch: l = L(pose), the rotors turn with the drums, and the winches’ inertia joins the platform’s through G = dL/dxi = -A^T: (M + G^T diag(J_k) G) xi’ = G^T (drive + friction) - c - g - G^T diag(J_k) (G’ xi).

The cables’ own mass (cable.mass_per_m_kg rho, 0 where the key is left out) acts in two ways. Its weight: the cable between the pulley’s swivel point E and the anchor P (length L) hangs from both ends, so its potential is V = rho g L (z_P - z_E) / 2 (the mass of the free span at the height of its middle, the cable paid out counted from the pulley’s height: the run from the drum to the pulley keeps its length, and lifting cable from the drum’s height to the pulley’s is the winch’s, rho g h l with h the drum’s drop (with effects.cable_inertia, from frame.run_lengths_m): a force rho g h at the cable, 0.05 N for 0.5 m at 10 g/m), and the platform’s equation has the wrench dV/dxi: at the anchor the force rho g / 2 (L e_z - (z_P - z_E) u), half the weight of the span along gravity and the share of its along-cable pull (dL/dP = -u), with the moment b x f; V joins the potential energy, so the budget closes. And the sag (parabolic, shallow): a cable of weight w = rho g per metre hanging over its straight part l_f, whose horizontal part is l_h, at the chord tension T sags by d = w l_h l_f / (8 T) and is longer than its chord by (w l_h)^2 l_f / (24 T^2). The cable of free length l, stretched to l (1 + T / EA), spans that, so with t0 = EA (L - l) / l (the straight cable’s tension) t0 = T - c / (2 T^2), c = (w l_h)^2 EA l_f / (12 L): the cable pulls with the one positive root T of T^3 - t0 T^2 - c / 2 = 0 (sagged), taut at any t0 (a slack cable hangs: T = sqrt(c / (2 |t0|)) far below zero), and its stiffness dT/dt0 = 1 / (1 + c / T^3) is Ernst’s equivalent modulus E / (1 + (w l_h)^2 E A / (12 T^3)) (times l_f / L). Its energy, the stretch’s and the sag’s weight together, is (l / EA) W with W = T^2 / 2 - c / T, the integral of T over t0 (pull_work), so that the platform takes T along the chord and the drum T L / l - W / EA, and W’s change with c over the pose too (the sag’s weight moving with l_h, about (w l_h)^2 l / (12 T l_h), 5e-5 N at 10 g/m and 20 N: sag_pull). With effects.cable_inertia the cable runs along itself at the drum’s speed, the whole of the drum’s capacity a mass rho capacity at the cable beside J / r^2. And each straight span swings across itself with its anchor, rho l_f / 3 (1 - u u^T) at the anchor with its velocity terms (swing_bias; 42 g on the spatial platform’s 8 kg with the payload, 0.5 %). Rigid cables do not stretch and have no sag.

The motor angles of a pose (inverse) are those of the free lengths that hold the platform at rest there with the tensions of the distribution, l = L / (1 + t / EA) (rigid: l = L), so that position setpoints and the torque feedforward ask the same pretension of the cables. forward finds the pose by Gauss-Newton on the cable lengths (rigid), or where the platform hangs at rest on cables of the motors’ free lengths (elastic).

Structs§

CableRobot
Short
A list of at most N entries on the stack (the per-cable and per-degree-of-freedom vectors of one derivative, which would each cost a heap allocation; the cable count is at most 8 and the degrees of freedom 6, checked in new), read as a slice.
Span
One cable at a pose: its length from the pulley’s swivel point to the anchor (arc and straight part), the straight part, the unit vector from the anchor to the exit point, the exit point, and the anchor’s offset b = R a.

Constants§

LOSSY_EFFECTS
Effects that take energy out or put it in; the standard suite runs with them off.

Statics§

PLANAR
SPATIAL

Functions§

distribute
The tension distribution: the tensions t (m) nearest t_ref that hold the wrench, A t = w for the structure matrix a (n x m, row by row), each within [t_min, t_max]; None where there are none (outside the wrench-feasible workspace). A small QP, min |t - t_ref|^2 subject to A t = w and the band: the penalised problem (penalised) finds which cables sit at a bound, and the free ones are then solved exactly, t_F = t_ref + A_F^T (A_F A_F^T)^-1 (w - A_B t_B - A_F t_ref). Where no cable is at a bound that is the closed form t_ref + A^+ (w - A t_ref); unlike the improved closed-form method, which fixes one cable at a time and never frees it, the QP’s tensions change continuously with the pose wherever they exist.
lossless_config
The default config with every loss switched off.