Skip to main content

Module base

Module base 

Source
Expand description

A compliant base under any machine (effects.base_compliance): the frame or stand the whole machine stands on, a rigid body on springs in up to six directions, translation along x, y, z and a small tilt about x, y, z through base.pivot_m, in the frame of the tool pose (FrameMomentum). Each direction with a stiffness above zero is a mass (base.mass_kg, or base.inertia_<x|y|z>_kgm2 for a tilt), a spring and a damper of its own:

M d’’ + 2 zeta sqrt(k M) d’ + k d = L

where L is what the machine puts on the base: the rate of change of the momentum of what moves on it, taken back (the motors push on their stators as they push the load), the weight of what moves and an outside force on it (a process force from a workpiece on the floor), less those at rest at the start pose, at which the base was set up:

F = -dp/dt + m g + F_ext, T = -dL/dt + c x g + r_ext x F_ext (about the origin; about the pivot T - P x F)

dp/dt is the momentum’s change along the machine’s own state rates, by central differences over +-1 us. The tool rides on the base and the workpiece stands on the floor, so the base’s move at the tool (Machine::base_shift) is the tool’s too; the motors’ angles are measured on the base and do not see it.

M is everything that sways with the base, the machine on it included: the base’s natural frequency is sqrt(k / M) / 2 pi as configured.

Without effects.base_reaction the coupling is one-way: the machine’s own dynamics do not feel the base’s acceleration (its motors neither see the sway in their following error nor hold against it); exact where the servo holds the axes stiffly to the base or the base is much heavier than what moves.

With effects.base_reaction it is two-way. The machine’s momentum is linear in its speeds v (the states that move a mass: Reaction::speeds), P = A(q) v (linear, then angular about the pivot), and A is the map that turns the base’s acceleration a (translation, then tilt) into generalised forces on them, -A^T a, as it turns gravity into A_lin^T g. Its mass matrix over the speeds is the Hessian of its kinetic energy, M = d2E / dv2 (Machine::energy at the state with v set to unit speeds, by polarisation: exact, E being quadratic in v). With the machine’s own accelerations v0’’ (its derivatives, which do not know the base), the two are solved together each evaluation:

v’’ = v0’’ + M^-1 A^T (w - a), (M_B - A M^-1 A^T) a = L - k d - c d’ - A M^-1 A^T w

L as above (its dp/dt along the machine’s own rates), w = (g x theta, 0) the change of gravity in the machine’s frame by the base’s tilt theta. The base’s kinetic energy 1/2 M_B d’^2 + d’ . P, its spring’s 1/2 k d^2 and the weight’s work on its tilt, -theta . (c x g - c0 x g), are in Machine::energy and in the signals energy.*; its damping c d’^2 is the signal power.base. The process force’s work on the moving base, the outside force’s wrench (about the pivot, less its value at the start pose) times the base’s rates, is taken off that row (it is energy put in, so a negative loss), which closes the budget while a process force works on a swaying base.

The gyroscopic and centrifugal terms of the base’s tilt rates on the machine (second order in the small tilt), and the change of the base’s inertia with the machine’s pose, are left out. A gantry crate’s and the machine files’ own frame mode (effects.frame_compliance) is the coupled one along one axis: the portal’s posts swaying under its beam; the base is what the whole machine stands on, in series with it.

Structs§

Based
A machine on a compliant base. Its state is the machine’s, then the base’s deflection in each compliant direction, then their rates.

Constants§

DOFS
The base’s directions: translation along x, y, z, tilt about x, y, z.

Functions§

add_point
Adds a point mass m at r moving at v to a machine’s FrameMomentum.
add_spin
Adds a rotor (or any wheel whose centre stays put) spinning at speed with inertia about the unit axis.
add_turning
Adds a body that turns about a fixed joint at joint, at speed: its centre of mass lies along dir (a unit vector turning with it, ddir its derivative by the angle, so that the axis is dir x ddir), moment (kg m) its mass times that distance and inertia its inertia about the axis through the joint. Its mass at the joint does not change the load and is left out. Linear momentum moment speed ddir; angular inertia speed axis plus joint x that.
mount
The machine on a compliant base with effects.base_compliance, as it is without. A config without the switch (one written before 14 November 2026) has a rigid base.