pub struct Winder {Show 22 fields
pub roll: Roll,
pub ratio: f64,
pub efficiency: [f64; 2],
pub j_rotor: f64,
pub ea: f64,
pub width: f64,
pub damping_time: f64,
pub tension: f64,
pub taper: f64,
pub wound_strain: f64,
pub spans: [f64; 2],
pub dancer_mass: f64,
pub payload: f64,
pub attached: bool,
pub roller_radius: f64,
pub roller_inertia: f64,
pub air_spring: f64,
pub stroke: f64,
pub g: f64,
pub elastic: bool,
pub trim_length: f64,
pub trim_speed: f64,
/* private fields */
}Fields§
§roll: Roll§ratio: f64§efficiency: [f64; 2]Each gearbox’s efficiency now (1 with effects.gearbox_efficiency off; with effects.thermal_feedback at its temperature), its no-load running torque (effects.gearbox_drag) and its lubricant’s viscosity over the reference.
j_rotor: f64Motor rotor and gearbox input, kg m^2 at the motor.
ea: f64§width: f64The web’s width, m (drawn).
damping_time: f64The web’s material damping time constant (0 with effects.web_damping off), s.
tension: f64The tension setpoint at the rewind’s core, N, and the taper k (0 with effects.tension_taper off).
taper: f64§wound_strain: f64The strain the unwind roll was wound at.
spans: [f64; 2]§dancer_mass: f64§payload: f64§attached: bool§roller_radius: f64§roller_inertia: f64§air_spring: f64§stroke: f64§g: f64§elastic: bool§trim_length: f64§trim_speed: f64Implementations§
Source§impl Winder
impl Winder
pub fn new(cfg: &Config) -> Result<Self, ConfigError>
Sourcepub fn dancer_total_mass(&self) -> f64
pub fn dancer_total_mass(&self) -> f64
The dancer with what it carries.
Sourcepub fn radii_at(&self, l: f64) -> [f64; 2]
pub fn radii_at(&self, l: f64) -> [f64; 2]
Radii at the line position l: the unwind with the capacity less l on its core, the rewind with l.
Sourcepub fn angles_at(&self, l: f64) -> [f64; 2]
pub fn angles_at(&self, l: f64) -> [f64; 2]
The roll angles at the line position l with the dancer in the middle: s = phi (r0 + r) / 2 solved for phi.
Sourcepub fn unwind_radius(&self, phi: f64) -> f64
pub fn unwind_radius(&self, phi: f64) -> f64
The unwind’s radius at its angle (paid out from full) and the rewind’s at its angle (wound from the core).
pub fn rewind_radius(&self, phi: f64) -> f64
Sourcepub fn paid_out(&self, phi: f64) -> f64
pub fn paid_out(&self, phi: f64) -> f64
The web the unwind has paid out at its angle, and the rewind wound up at its, m: phi (r0 + r) / 2.
pub fn wound_up(&self, phi: f64) -> f64
Sourcepub fn roll_inertia(&self, r: f64) -> f64
pub fn roll_inertia(&self, r: f64) -> f64
A roll’s inertia at radius r as its motor turns it, at the roll: roll plus i^2 J_rotor.
Sourcepub fn tension_setpoint(&self, r_rewind: f64) -> f64
pub fn tension_setpoint(&self, r_rewind: f64) -> f64
The tension setpoint at the rewind’s radius: T0 (1 - k (1 - r_c / r)).
Sourcepub fn cylinder_force(&self, r_rewind: f64) -> f64
pub fn cylinder_force(&self, r_rewind: f64) -> f64
The cylinder’s force setpoint for that tension: 2 T - m g, the dancer’s weight taken off.
Sourcepub fn roll_torque(&self, k: usize, r: f64, v: f64, a: f64, tension: f64) -> f64
pub fn roll_torque(&self, k: usize, r: f64, v: f64, a: f64, tension: f64) -> f64
The motor torque that turns roll k (0 unwind, 1 rewind) at radius r so that its surface runs at v and
speeds up by a, against the web’s tension tension: tau = (J(r) w’ -+ T r) / i, w’ = (a -+ h w^2 / (2 pi)) / r
(the radius shrinks on the unwind, grows on the rewind, so at a steady line speed the unwind speeds up).
Sourcepub fn rigid_span_tensions(&self, l: f64, a: f64) -> [f64; 2]
pub fn rigid_span_tensions(&self, l: f64, a: f64) -> [f64; 2]
The two spans’ tensions of the rigid model at rest for the line’s acceleration a: the roller’s inertia takes
J_d a / R^2 between them, the dancer at rest their sum 2 T_set: T_set -+ J_d a / (2 R^2).
Sourcepub fn inertia_ratio(&self, r: f64) -> f64
pub fn inertia_ratio(&self, r: f64) -> f64
The inertia ratio at roll radius r: what the motor sees of roll, core and shaft over rotor and gearbox input.
Sourcepub fn end_figures(
&self,
v: f64,
a: f64,
t: [f64; 2],
r_rewind: f64,
) -> [[f64; 5]; 2]
pub fn end_figures( &self, v: f64, a: f64, t: [f64; 2], r_rewind: f64, ) -> [[f64; 5]; 2]
The figures the own verdicts judge, from the line’s speed v, its acceleration a and the spans’ tensions t
at the rewind’s radius r_rewind: per motor its torque at the full roll and at the core (roll_torque), its
speed at the core i v / r_c, the tension’s torque at the full roll T r_f / i, and the inertia ratio at the full
roll. The tension at a roll’s end is the setpoint there (with the taper: the rewind at its core while the unwind is
full, and full while the unwind is on its core) plus what the span’s tension is off its setpoint now.
Trait Implementations§
Source§impl Machine for Winder
impl Machine for Winder
Source§fn inverse(&self, tool: &[f64], motors: &mut [f64])
fn inverse(&self, tool: &[f64], motors: &mut [f64])
The line position’s roll angles through the ratio, each at the radius of its wound length: the rewind’s the line position, the unwind’s the line position plus the web the dancer’s trim has had it pay out more.
Source§fn forward(&self, motors: &[f64], tool: &mut [f64])
fn forward(&self, motors: &[f64], tool: &mut [f64])
The line position from the motors’ angles, as tool_state takes it from the rolls’.
Source§fn equilibrium(&self, tool: &[f64], state: &mut Vec<f64>, torque: &mut [f64])
fn equilibrium(&self, tool: &[f64], state: &mut Vec<f64>, torque: &mut [f64])
At rest at the line position, the dancer in the middle and each span at the tension setpoint: M = L / (1 + T / EA); the motors hold the tension’s torque, -T r_u / i on the unwind and T r_r / i on the rewind.
Source§fn tool_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn tool_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
The line position the rolls stand at: the mean of the web the unwind has paid out, less what the dancer’s trim had it pay out more, and the web the rewind has wound up; with the dancer in the middle both. In the rigid model the web’s travel at the dancer roller, (s_u + s_r) / 2.
Source§fn feedforward_torque_moving(
&self,
pos: &[f64],
vel: &[f64],
acc: &[f64],
out: &mut [f64],
)
fn feedforward_torque_moving( &self, pos: &[f64], vel: &[f64], acc: &[f64], out: &mut [f64], )
The tension’s torque and the inertia compensation at the radii of the line position (roll_torque), the
spans’ tensions those of the rigid model at rest (rigid_span_tensions).
Source§fn rigid_motor_torque(
&self,
angle: &[f64],
speed: &[f64],
acc: &[f64],
out: &mut [f64],
)
fn rigid_motor_torque( &self, angle: &[f64], speed: &[f64], acc: &[f64], out: &mut [f64], )
The rigid model’s inverse dynamics at motor angles, speeds and accelerations of their own: the dancer then moves at half the surfaces’ difference, and the two tensions follow from its balance and the roller’s.
Source§fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
The motors’ shaft friction and the gearboxes’ drag at their speeds, and the dancer roller’s drag through the web: it takes R (T2 - T1), so T1 = T - drag / (2 R) and T2 = T + drag / (2 R), r / i of each at the motors.
Source§fn rigid_friction(&self, pos: &[f64], dir: &[f64], out: &mut Vec<[f64; 2]>)
fn rigid_friction(&self, pos: &[f64], dir: &[f64], out: &mut Vec<[f64; 2]>)
The roller’s drag of steady_friction as Coulomb and viscous parts; the motors’ shafts are their own.
Source§fn rigid_checks(
&self,
pos: &[f64],
vel: &[f64],
acc: &[f64],
out: &mut Vec<f64>,
)
fn rigid_checks( &self, pos: &[f64], vel: &[f64], acc: &[f64], out: &mut Vec<f64>, )
The own checks in the rigid model (rating_checks): the spans’ tensions of rigid_span_tensions, the figures
at the rolls’ ends, and no dancer travel (the rigid model holds it in the middle): NaN.
Source§fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
What moves and can hit an obstacle: the dancer’s slide and the weight on it, as scene draws them (the rolls turn
in place).
Source§fn set_tool_force(&mut self, force: &[f64]) -> bool
fn set_tool_force(&mut self, force: &[f64]) -> bool
What can touch is the dancer (collision_bodies), which the web holds and no motor moves: the push acts on its
travel y, in the dancer’s balance; its power is the crash row.
Source§fn contact_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn contact_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
The dancer’s travel y (down) and its rate, as eval takes them.
Source§fn contact_placed(&self, s: &[f64], at: &[f64], out: &mut Vec<f64>)
fn contact_placed(&self, s: &[f64], at: &[f64], out: &mut Vec<f64>)
The dancer at travel at: in the rigid model the unwind turned on by the web that takes (2 dy at its radius).
Source§fn after_step(&mut self, s: &mut [f64], dt: f64)
fn after_step(&mut self, s: &mut [f64], dt: f64)
The dancer’s position loop, every base step while the drives are on: the trim v = -(Kp e + integral), e the dancer’s travel from the middle (down: too much web between the rolls, so the unwind slows), held to the most it may trim, the integrator Kp / Tn e (held while the trim is at its limit); the unwind’s setpoint moves on by i v / r_u. While the drives are off the trim tracks what the rolls stand at: the web the unwind paid out more than the rewind took up (the dancer’s travel, two spans of it), so that enabled again both motors’ setpoints are where they stand. Before 15 November 2026 a re-enable after a coast set both rolls to the mean of the two, yanked them by the dancer’s travel and tripped a weak DC link again.
Source§fn modes(&self, _tool_pose: &[f64]) -> Vec<Mode>
fn modes(&self, _tool_pose: &[f64]) -> Vec<Mode>
The dancer on the web with the rolls held: the two spans and the air spring, k = EA / L1 + EA / L2 + k_air, on the dancer and what it carries, f = sqrt(k / m) / (2 pi), damped by the web’s material damping (EA tau / L each) and the slide’s viscous friction; and the roller turning on the spans, one stretching as the other gives, k = R^2 (EA / L1 + EA / L2) on J_d. The dancer in the middle; none in the rigid model.
Source§fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
In the frame of the scene, the rolls’ axes along y at z = 0: the dancer and what it carries moving along z (down as y grows), the rolls with their rotors and the roller spinning about y. The web’s weight moving from one roll to the other over the run is left out (minutes, not a vibration).
Source§fn set_part_temperatures(&mut self, rises: &[f64])
fn set_part_temperatures(&mut self, rises: &[f64])
With effects.thermal_feedback: each gearbox’s efficiency and its lubricant’s viscosity (its drag) at its rise, in the
order of thermal_parts.
Source§fn thermal_parts(&self) -> Vec<ThermalPart>
fn thermal_parts(&self) -> Vec<ThermalPart>
The two gearboxes, which warm with their losses (power.gearbox_<motor>) with effects.part_heating or
effects.thermal_feedback; none where the ratio is 1 (a coupling).
Source§fn effect_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn effect_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
Per motor: inertia J w’ / i (roll, core and rotor), no gravity (the dancer’s weight is taken off by its cylinder), its shaft friction and its gearbox’s loss at the rotor ((1 - factor) times its input torque), and the rest (the web’s tension); the losses; the energy parts.
Source§fn scene(&self, s: &[f64], out: &mut Scene)
fn scene(&self, s: &[f64], out: &mut Scene)
Seen from the front: the unwind roll on the left, the rewind on the right, their motors behind them, the dancer’s roller below in the middle on its slide with the cylinder under it, and the web from roll to roller to roll, shaded by its tension against the setpoint.
fn axes(&self) -> &[AxisInfo]
fn motors(&self) -> &[MotorInfo]
fn state_len(&self) -> usize
fn derivatives(&self, s: &[f64], torque: &[f64], out: &mut [f64])
Source§fn set_tool_velocity(&self, s: &mut [f64], vel: &[f64])
fn set_tool_velocity(&self, s: &mut [f64], vel: &[f64])
equilibrium) the tool speeds vel: everything that moves with the
tool, motors included, moves along as the kinematics say.fn motor_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
Source§fn feedforward_torque(&self, pos: &[f64], acc: &[f64], out: &mut [f64])
fn feedforward_torque(&self, pos: &[f64], acc: &[f64], out: &mut [f64])
fn set_payload_attached(&mut self, attached: bool)
Source§fn set_brake_engaged(&mut self, engaged: bool)
fn set_brake_engaged(&mut self, engaged: bool)
Source§fn contact_axes(&self) -> usize
fn contact_axes(&self) -> usize
set_tool_force): by default the tool’s axes. A machine
whose parts that can touch do not move with its tool alone (a load swinging under it, a dancer the web holds)
gives coordinates of their own.Source§fn memory(&self) -> Vec<f64>
fn memory(&self) -> Vec<f64>
state (the gearboxes’ hysteresis anchors that
after_step moves on, a numerical inverse’s last solution), as a fixed count of numbers: a snapshot of the
simulation keeps them and sets them back with set_memory. None by default.Source§fn set_memory(&mut self, memory: &[f64])
fn set_memory(&mut self, memory: &[f64])
memory gave.Source§fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
None where the machine has none to tell.Source§fn rating_checks(&self) -> Vec<RatingCheck>
fn rating_checks(&self) -> Vec<RatingCheck>
Source§fn signal_infos(&self) -> Vec<SignalInfo>
fn signal_infos(&self) -> Vec<SignalInfo>
base_signals, then those of effect_signals.Source§fn base_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn base_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
Source§fn loss_powers(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn loss_powers(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
power.* in their order among the signals, without the rest of
effect_signals: what warms the parts every step (thermal_parts). Empty where the machine reports none.§fn base_shift(
&self,
tool_pose: &[f64],
pivot: [f64; 3],
shift: &[f64; 6],
out: &mut [f64],
)
fn base_shift( &self, tool_pose: &[f64], pivot: [f64; 3], shift: &[f64; 6], out: &mut [f64], )
tool_pose when the base moves by shift
(translation [x, y, z] in m and a small tilt [x, y, z] in rad about pivot, in the frame of FrameMomentum),
written into out (as long as the axes). By default the axes x, y, z take the move of the tool point at the
pose’s x, y, z, u + theta x (r - pivot), and a rotary axis with an id of BASE_AXES[1], or c (about z), the
tilt; a machine whose tool axes are its joints moves nothing.§fn motor_linear(&self, _motor: usize) -> bool
fn motor_linear(&self, _motor: usize) -> bool
motor is a linear motor: its angle, speed and torque signals are then m, m/s and N, and the
“motor-speed” verdict’s value is m/s. False by default, a rotary motor.§fn scale_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])
fn scale_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])
tool_state reports it.§fn twist(&self, _torque: &[f64], _acc: &[f64], out: &mut [f64])
fn twist(&self, _torque: &[f64], _acc: &[f64], out: &mut [f64])
torque holds, less what the rotor’s own acceleration acc takes (the motor’s angle less where
the rigid model puts the motor for the load’s pose). Zeros by default: the trains are rigid. For fitting a trace
(identify::fit_joints), with rigid_split_torque.§fn twist_at(&self, _angle: &[f64], torque: &[f64], acc: &[f64], out: &mut [f64])
fn twist_at(&self, _angle: &[f64], torque: &[f64], acc: &[f64], out: &mut [f64])
twist with the motors at angle (motor radians, the trace’s): behind a screw whose stiffness follows its nut,
the train’s spring where the nut is, on the shaft’s point the rotor has turned to it. By default twist, for a
machine whose trains have one stiffness along the stroke.§fn rigid_split_torque(
&self,
angle: &[f64],
speed: &[f64],
acc: &[f64],
_rotor_acc: &[f64],
out: &mut [f64],
)
fn rigid_split_torque( &self, angle: &[f64], speed: &[f64], acc: &[f64], _rotor_acc: &[f64], out: &mut [f64], )
rigid_motor_torque with the load at angle, speed, acc (where the rigid model puts the motors for it) and
the rotors at their own acceleration rotor_acc: what an elastic train (twist) needs. By default the rigid
torques at the load’s motion, the rotors turning with it.§fn rigid_tensions(
&self,
_tool_pos: &[f64],
_tool_acc: &[f64],
_out: &mut Vec<f64>,
)
fn rigid_tensions( &self, _tool_pos: &[f64], _tool_acc: &[f64], _out: &mut Vec<f64>, )
belt_sections) that the loss-free rigid model of
feedforward_torque gives at a tool pose and acceleration: what the belt has to pull on the moved masses (not
on the pulleys and rotors, which the motors turn), shared out so that the belt keeps its length. Linear in the
acceleration. Appends nothing where the machine has no belt sections to tell.§fn rigid_tensions_moving(
&self,
tool_pos: &[f64],
tool_vel: &[f64],
tool_acc: &[f64],
out: &mut Vec<f64>,
)
fn rigid_tensions_moving( &self, tool_pos: &[f64], tool_vel: &[f64], tool_acc: &[f64], out: &mut Vec<f64>, )
rigid_tensions with the tool’s velocity too, for machines whose carriages accelerate with the speed (a delta’s
rods turn: h’’ = J^-1 (p’’ - J_x^-1 w)). By default the speed does not matter.§fn tension_band(&self) -> Option<[f64; 2]>
fn tension_band(&self) -> Option<[f64; 2]>
rigid_tensions within, where the machine has it from
its own parts (cables between winches and a platform); None: ratings.belt_min_tension_n and belt_max_tension_n.§fn rigid_guide_loads(
&self,
_tool_pos: &[f64],
_tool_acc: &[f64],
_out: &mut Vec<[f64; 2]>,
)
fn rigid_guide_loads( &self, _tool_pos: &[f64], _tool_acc: &[f64], _out: &mut Vec<[f64; 2]>, )
axis.<id>.guide_load (N, in that order) in the loss-free rigid model at a
tool pose and acceleration, as [rest, moving] for the load rest + |moving|: moving linear in the acceleration
and zero without. The time-optimal plan keeps it within ratings.guide_max_load_n. Appends nothing where the
machine does not tell.§fn rigid_friction_rise(
&self,
_tool_pos: &[f64],
_tool_dir: &[f64],
_out: &mut Vec<Vec<[f64; 2]>>,
)
fn rigid_friction_rise( &self, _tool_pos: &[f64], _tool_dir: &[f64], _out: &mut Vec<Vec<[f64; 2]>>, )
rigid_friction’s c + b v leaves out near a standstill, the Stribeck rise: per motor a [level, speed] for each
contact it drives, the torque level exp(-(v / speed)^2) more at the speed v along the path (the friction is then
c + sum level exp(..) + b v; level signed as c, speed in the path’s units, above 0). For the time-optimal plan,
which holds the room for it at the most it takes over the speeds up to v. Appends nothing where the machine has no
rise (the default).§fn links(&self) -> Vec<String>
fn links(&self) -> Vec<String>
identify::fit_joints), by name: the links
of a URDF chain. None by default.§fn set_link_change(&mut self, _link: usize, _factor: f64, _moment: [f64; 3])
fn set_link_change(&mut self, _link: usize, _factor: f64, _moment: [f64; 3])
link’s inertial parameters about its joint’s frame, from those it was built with: mass, first
moment and inertia all times factor, then moment (kg m, in its frame) added to the first moment with mass
and inertia about the frame kept. The rigid torques are linear in each, which the fit takes its columns from.
(1, [0; 3]) restores it. Nothing by default.§fn set_dwelling(&mut self, _dwelling: bool)
fn set_dwelling(&mut self, _dwelling: bool)
§fn push_substeps(&self) -> u32
fn push_substeps(&self) -> u32
Sim’s PUSH_SUBSTEPS) a base step with one is to be taken: where the contact’s spring holds a coordinate far
lighter than the load’s (a leaning axis pushed through its lever). 1 by default.§fn substeps_wanted(
&self,
_s: &[f64],
_torque: &[f64],
_dt: f64,
_substeps: u32,
) -> u32
fn substeps_wanted( &self, _s: &[f64], _torque: &[f64], _dt: f64, _substeps: u32, ) -> u32
dt (s), taken in substeps sub-steps, is to have each sub-step cut into,
at least 1, from its start state s and the motors’ torques: for what changes faster than a sub-step resolves
(a gearbox’s efficiency switch held near zero power at a large torque, mech::fade_substeps; a joint’s stop met
within the step, mech::STOP_SUBSTEPS). The model is the same; only its integration is finer
(integrate::advance_refined). 1 by default.§fn valves(&self) -> Vec<(String, f64)>
fn valves(&self) -> Vec<(String, f64)>
valves and wait. None
by default.§fn set_valve(&mut self, _valve: usize, _command: f64)
fn set_valve(&mut self, _valve: usize, _command: f64)
valve (of valves); the valve switches after its own delay.§fn end_sensors(&self, _valve: usize) -> [bool; 2]
fn end_sensors(&self, _valve: usize) -> [bool; 2]
valve’s end-position sensors, [retracted, extended], each after its delay.§fn trains(&self, _tool_pose: &[f64]) -> Vec<Option<Train>>
fn trains(&self, _tool_pose: &[f64]) -> Vec<Option<Train>>
Train), for the time-optimal plan to keep back the speed the
train’s twist adds to the motor’s: None, or no entry, where the train is rigid (no allowance).§fn mode_shape(&self, _tool_pose: &[f64]) -> Option<(f64, Vec<f64>)>
fn mode_shape(&self, _tool_pose: &[f64]) -> Option<(f64, Vec<f64>)>
resonance_hz reports at a tool pose: its frequency in Hz and its shape, a direction in the state
(as long as it, positions only, rates zero). The equilibrium at that pose plus a small amplitude times the
shape, drawn with scene, shows how the machine moves in that mode; one unit of amplitude moves the tool by
1 m along its first axis. None where the machine tells no resonance.§fn modes_small_amplitude(&self, tool_pose: &[f64]) -> Vec<Mode>
fn modes_small_amplitude(&self, tool_pose: &[f64]) -> Vec<Mode>
modes for small vibrations: where a joint’s gearbox has hysteresis (gearbox_lost_motion),
the stiffness it shows at a reversal is K1 + sigma, not the large-amplitude K1 modes uses. A shaper for the
move’s own swing takes modes (the twists of the move are far above the hysteresis loop); one for the residual
ringing below about 1e-4 rad at the joint takes these. By default the same as modes.§fn sway_modes(&self, tool_pose: &[f64]) -> Vec<Mode>
fn sway_modes(&self, tool_pose: &[f64]) -> Vec<Mode>
profile.shaper_modes, the shaping
optimiser’s second shaper), lowest first: by default modes. A machine whose modes hold modes the shaper does
not act on (a crane’s bounce of the load on its rope) gives the ones it does (the swing, and the hook block’s
upper swing).§fn belt_wraps(&self, _tool_pose: &[f64]) -> Vec<f64>
fn belt_wraps(&self, _tool_pose: &[f64]) -> Vec<f64>
motors; NaN for a motor that drives no belt. Empty where the machine
gives no belt geometry or the effect is off: then ratings.belt_teeth_in_mesh stands for the teeth in mesh.§fn unreachable(&self, _tool_pose: &[f64], _slack: f64) -> Option<&'static str>
fn unreachable(&self, _tool_pose: &[f64], _slack: f64) -> Option<&'static str>
slack (m) widens the envelope at its
edges, as it widens the axis ranges for a setpoint at rest. None where it can; machines whose workspace is
the box of their axis ranges keep this default.§fn refuses_pick(&self, _tool_pose: &[f64]) -> Option<&'static str>
fn refuses_pick(&self, _tool_pose: &[f64]) -> Option<&'static str>
tool_pose (a cycle segment that attaches it), as a
translation key: the machine’s own physical reason (a hook block that would hang inside the payload). None
where it can, by default.§fn condition(&self, _tool_pose: &[f64]) -> Option<f64>
fn condition(&self, _tool_pose: &[f64]) -> Option<f64>
f64::INFINITY out of reach
of the kinematics (whatever the envelope and the joints’ stops say, which unreachable tells). None for a
machine that has no map to show: one whose motor angles are a linear function of the tool pose.§fn setpoint_slack(&self) -> f64
fn setpoint_slack(&self) -> f64
§fn cam(&self) -> Option<CamMaster>
fn cam(&self) -> Option<CamMaster>
None for a machine whose cycle is its
[[cycle.segment]]. Each pass is one period of the master once it is up to speed; a stop runs it down.§fn cam_at(&self, _master: f64, _out: &mut [[f64; 4]])
fn cam_at(&self, _master: f64, _out: &mut [[f64; 4]])
cam: each tool axis (the slaves) at the master position master, as [s, s’, s’‘, s’‘’], the rates over
the master.§fn cam_curve(&self) -> Option<Arc<dyn Fn(f64, &mut [[f64; 4]]) + Send + Sync>>
fn cam_curve(&self) -> Option<Arc<dyn Fn(f64, &mut [[f64; 4]]) + Send + Sync>>
cam: the curve cam_at reads, apart from the machine, so that it still reads the same once the config
has changed (the input shaper reads the plan of past cycles off it). None without a cam.§fn gantry_motors(&self) -> Option<[usize; 2]>
fn gantry_motors(&self) -> Option<[usize; 2]>
gantry.sync). None without one.§fn scene_point(&self, _tool_pose: &[f64]) -> Option<[f64; 3]>
fn scene_point(&self, _tool_pose: &[f64]) -> Option<[f64; 3]>
tool_pose, in scene coordinates, so that a front end can
draw a path of the tool into the scene. None for a machine that has no such mapping.§fn collision_capsules(&self, _state: &[f64]) -> Vec<Capsule>
fn collision_capsules(&self, _state: &[f64]) -> Vec<Capsule>
state, beside the boxes of collision_bodies. None by default.§fn self_collision_capsules(&self, state: &[f64]) -> Vec<Capsule>
fn self_collision_capsules(&self, state: &[f64]) -> Vec<Capsule>
collision::check_path): by default those
of collision_capsules. A machine whose links are not checked against obstacles can add them here.§fn connected_bodies(
&self,
_state: &[f64],
_boxes: usize,
_capsules: usize,
) -> Option<Vec<(usize, usize)>>
fn connected_bodies( &self, _state: &[f64], _boxes: usize, _capsules: usize, ) -> Option<Vec<(usize, usize)>>
state, with
boxes boxes (collision_bodies) and capsules capsules (self_collision_capsules): pairs of indices into
the boxes followed by the capsules. None, the default, takes the rule that parts which touch, overlap or lie
closer than profile.min_clearance_m to each other at the first pose checked are joined (a carriage on its
rail, a link at its joint) and every other pair is checked; that cannot see a collision of parts already in
contact at that pose. A machine that knows its parts’ adjacency tells it exactly. The step of the simulation is
not touched: parts do not push each other there.§fn friction_contacts(&self) -> Vec<FrictionContact>
fn friction_contacts(&self) -> Vec<FrictionContact>
§fn friction_curve(&self, _i: usize, _speed: f64, _load_scale: f64) -> [f64; 3]
fn friction_curve(&self, _i: usize, _speed: f64, _load_scale: f64) -> [f64; 3]
i at speed, with its levels scaled by load_scale, split into
[Coulomb, viscous, stiction]. It opposes a positive speed.§fn friction_rotary(&self, _i: usize) -> bool
fn friction_rotary(&self, _i: usize) -> bool
i is a rotary one (a joint’s bearings): its speed signal is an angular speed (rad/s) and its
parts torques (N m), where a sliding one has m/s and N. The friction view draws the labels of its kind.§fn friction_speed_limit(&self, _i: usize, _motor_speed: &[f64]) -> Option<f64>
fn friction_speed_limit(&self, _i: usize, _motor_speed: &[f64]) -> Option<f64>
i’s curve, where
the machine knows it from the highest speed of each motor’s rotor, motor_speed (rad/s, from its drive);
None: the owner axis’s speed limit, or the fastest axis’s.§fn belt_sections(&self) -> Vec<BeltSection>
fn belt_sections(&self) -> Vec<BeltSection>
§fn thermal_values(&self, _id: &str) -> Option<(f64, f64)>
fn thermal_values(&self, _id: &str) -> Option<(f64, f64)>
id, where the machine works them
out from the part’s own size (a belt: its surface and mass) in place of the config’s thermal.<kind>_resistance_k_w
and thermal.<kind>_time_constant_s; None: the config’s.