Struct Delta
pub struct Delta { /* private fields */ }Implementations§
§impl Delta
impl Delta
pub fn arm(&self, k: usize, t: [f64; 3], y: [f64; 3]) -> ([f64; 3], [f64; 3])
pub fn arm(&self, k: usize, t: [f64; 3], y: [f64; 3]) -> ([f64; 3], [f64; 3])
Upper arm k from its shoulder to its end, as scene draws it: the legs’ elbow is at e, the arm’s end at the base
radius (the platform’s radius added back), moved by y out of the arm’s plane.
pub fn new(cfg: &Config) -> Result<Delta, ConfigError>
pub fn new(cfg: &Config) -> Result<Delta, ConfigError>
The spatial delta of a crate’s tables: [geometry], [mass], [upper_arm], [workspace], one [joint] for
all three arms, the axes x, y and z.
pub fn from_node(
cfg: &Config,
net: &Netlist,
node: &LinkageNode,
) -> Result<Delta, ConfigError>
pub fn from_node( cfg: &Config, net: &Netlist, node: &LinkageNode, ) -> Result<Delta, ConfigError>
The spatial delta of a machine file’s linkage node with three arms.
pub fn build(
cfg: &Config,
n: &dyn Numbers,
arms: Arms<3>,
) -> Result<Delta, ConfigError>
pub fn build( cfg: &Config, n: &dyn Numbers, arms: Arms<3>, ) -> Result<Delta, ConfigError>
The machine from its numbers (n, by their paths in a crate’s tables) and its drives; the effects from cfg.
pub fn legs(&self) -> &Legs
pub fn set_platform_drag(&mut self, drag: Option<PlatformDrag>)
pub fn set_platform_drag(&mut self, drag: Option<PlatformDrag>)
Puts a force on the platform against its motion (PlatformDrag), or takes it off. It enters the dynamics as a
generalised force J^T F at the elbows (in load_at‘s velocity term); the feedforward, the rigid loss-free model,
leaves it out as it leaves out the joints’ friction.
pub fn arm_inertia(&self) -> f64
pub fn arm_inertia(&self) -> f64
The arm’s inertia about its joint, elbow share of the forearms included, rotor not (the arm turned whole: root, tip and twice the tube’s coupling).
pub fn arm_moment(&self) -> f64
pub fn arm_moment(&self) -> f64
m_LG: the arm’s gravity torque is g m_LG cos(theta).
pub fn bend_split(&self) -> ([f64; 5], f64)
pub fn bend_split(&self) -> ([f64; 5], f64)
The arm split for its bend (effects.link_elasticity): inertia and first moment at the root and at the elbow, and the mass that moves with the elbow out of the arm’s plane, as [root_inertia, root_moment, tip_inertia, tip_moment, m_lateral], and the tube’s coupling B of root and elbow.
pub fn pose(&self, t: [f64; 3]) -> ([f64; 3], [[f64; 3]; 3])
pub fn pose(&self, t: [f64; 3]) -> ([f64; 3], [[f64; 3]; 3])
Where the platform is and the Jacobian there, for arm angles; NaN where the legs cannot be assembled.
pub fn load_at(
&self,
t: [f64; 3],
w: [f64; 3],
m: f64,
root: bool,
) -> ([[f64; 3]; 3], [f64; 3], [f64; 3])
pub fn load_at( &self, t: [f64; 3], w: [f64; 3], m: f64, root: bool, ) -> ([[f64; 3]; 3], [f64; 3], [f64; 3])
load at elbow angles t and speeds w with the platform’s mass m: of everything beyond the gearboxes (root), or
only of what lies beyond the arms’ tubes (what the bending springs carry).
pub fn rod_spin(
&self,
i: usize,
t: [f64; 3],
y: [f64; 3],
w: [f64; 3],
yv: [f64; 3],
) -> f64
pub fn rod_spin( &self, i: usize, t: [f64; 3], y: [f64; 3], w: [f64; 3], yv: [f64; 3], ) -> f64
The spin of leg i’s rods about their own axis (see add_spin), rad/s, at elbow angles t and moves y, speeds w
and yv.
pub fn energy_parts(&self, s: &[f64]) -> [f64; 3]
Trait Implementations§
§impl Machine for Delta
impl Machine for Delta
§fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
The platform (with the payload and the forearms’ share), each arm’s tube turning with its joint and what sits at
its elbow turning with the elbow (the bend added), the elbow’s move out of the arm’s plane, the forearms’ middles,
and the rotors spinning about the joints’ axes. The joints are where they are, at the base radius; the platform’s
centre is the tool. With effects.forearm_inertia each forearm pair’s spin about its own axis e = u / L (u the
forearm, from the elbow to the platform joint): the angular momentum I s e of add_spin (rod_spin is s). What
does not move is left out (see FrameMomentum).
§fn inverse(&self, tool: &[f64], motors: &mut [f64])
fn inverse(&self, tool: &[f64], motors: &mut [f64])
NaN where the pose is out of reach: the controller never asks for one (see unreachable).
§fn set_tool_velocity(&self, s: &mut [f64], vel: &[f64])
fn set_tool_velocity(&self, s: &mut [f64], vel: &[f64])
The arms turn at the speed, their bend (in and out of their planes) standing still.
§fn feedforward_torque(&self, pos: &[f64], acc: &[f64], out: &mut [f64])
fn feedforward_torque(&self, pos: &[f64], acc: &[f64], out: &mut [f64])
Rigid, loss-free, at rest: M theta’’ - Q_g at the arm over the ratio, plus the rotor’s own J_rotor i theta’’.
§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], )
With the speed: θ̇ = J⁻¹ ṗ, θ̈ = J⁻¹ (p̈ − J_x⁻¹ w), and at the arm M θ̈ + v − Q_g (load: with the lumped
forearms that is I_b θ̈ + m_nt Jᵀ p̈ − Q_g; with rods their middles’ too), over the ratio, plus the rotor’s own
J_rotor i θ̈. The links rigid.
§fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
The rigid model at a steady speed, θ̇ = J⁻¹ ṗ: per arm the joint’s friction f(θ̇) and the platform drag’s
−Jᵀ F through the gearbox as rigid_solve takes them, (f − drag) / (i loss), plus the motor shaft’s friction (with
the gearbox’s drag) at i θ̇. The gearbox’s loss factor is the one of what it passes at rest, the weight’s −Q_g
with the friction, as in rigid_solve (of the torque going in: linkage::steady_loss), and on all of it: the
weight’s lossless torque is the rigid feedforward’s, so what the loss adds to it is part of what this returns
(as the linkage’s, the trait’s rule: the load goes through the efficiencies where the motor drives). The same holds
for the speed’s own torque at the arm, M θ̈ + v at p̈ = 0 (the feedforward’s, loss-free): the loss is taken of it
with the rest, and what it adds is returned here. The brake is released and the stops are not touched in a move.
§fn set_tool_force(&mut self, force: &[f64]) -> bool
fn set_tool_force(&mut self, force: &[f64]) -> bool
The push acts on the platform, the tool (push, in joint_load and distal): its generalised forces P^T F on the coordinates its place
moves with, whose power F . v is the platform’s speed times it.
§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
A stop met within the step (HardStop::substeps, RotaryJoint::stop_substeps).
§fn after_step(&mut self, s: &mut [f64], _dt: f64)
fn after_step(&mut self, s: &mut [f64], _dt: f64)
The gearboxes, in the order of thermal_parts.
The gearboxes’ hysteresis states move on to where the step ended (Gearbox::commit).
§fn setpoint_slack(&self) -> f64
fn setpoint_slack(&self) -> f64
What the gearboxes can sag at rest anywhere in the working range (rest_sag): 0.73 mm with the SP+ 100 and its
typical 2.25 arcmin (the simulation at rest puts the motors’ pose up to 0.66 mm off the tool’s at the rim’s lower
edge between two arms); 2.30 mm with the NRB080’s 9 arcmin before 14 November 2026, and until 13 November a
fixed 1.5 mm, which 9 arcmin outgrew. Its arms rest at one side of their backlash; the bound takes either.
§fn condition(&self, tool: &[f64]) -> Option<f64>
fn condition(&self, tool: &[f64]) -> Option<f64>
Of the arm angles, elbows out, as the signal kinematics.condition and the check against
workspace.max_condition_number.
§fn friction_contacts(&self) -> Vec<FrictionContact>
fn friction_contacts(&self) -> Vec<FrictionContact>
The three arms’ bearing friction, rotary contacts (N m over rad/s at the arm).
§fn friction_speed_limit(&self, i: usize, motor_speed: &[f64]) -> Option<f64>
fn friction_speed_limit(&self, i: usize, motor_speed: &[f64]) -> Option<f64>
The arm turns at its motor’s highest speed over the gearbox’s ratio.
§fn thermal_parts(&self) -> Vec<ThermalPart>
fn thermal_parts(&self) -> Vec<ThermalPart>
The gearboxes that are not couplings, by their nodes’ ids.
§fn scene_point(&self, tool_pose: &[f64]) -> Option<[f64; 3]>
fn scene_point(&self, tool_pose: &[f64]) -> Option<[f64; 3]>
The platform’s centre: the machine’s frame is the scene’s.
§fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
The platform and the payload under it, where scene draws them, without drawing the rest: the live check asks
for them every base step. The rods and arms are collision_capsules.
§fn collision_capsules(&self, s: &[f64]) -> Vec<Capsule>
fn collision_capsules(&self, s: &[f64]) -> Vec<Capsule>
The six forearm rods and the three upper arms, each the capsule along the segment scene draws, of half its
width: exact for a round rod of that width, and no wider than the drawn strip anywhere along it.
§fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
With effects.joint_elasticity: per arm its gearbox’s spring (K1) between the rotor and the rest of the motor’s rigid inertia at the pose, over the ratio squared. The arms’ bending (effects.link_elasticity) is left out.
§fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
The lowest of modes: the gearboxes’ springs (effects.joint_elasticity) and the arms’ bending in and out of
their planes (effects.link_elasticity), in series where both are on. At the centre the lowest is sideways
(twice).
§fn mode_shape(&self, tool_pose: &[f64]) -> Option<(f64, Vec<f64>)>
fn mode_shape(&self, tool_pose: &[f64]) -> Option<(f64, Vec<f64>)>
The mode of resonance_hz: the joints’ turns in the arm angles, the bend (elbow less joint) in the bend states,
the elbows’ moves out of the arms’ planes in theirs, rotors still; scaled so that the platform’s largest travel
along an axis is 1 m.
§fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
Every mode of modes_at with its damping ratio: 3 with the gearboxes’ springs alone (one per arm), 6 with the
arms’ bending alone (in and out of their planes), 9 with both.
§fn modes_small_amplitude(&self, tool_pose: &[f64]) -> Vec<Mode>
fn modes_small_amplitude(&self, tool_pose: &[f64]) -> Vec<Mode>
modes with the gearboxes’ hysteresis stiffness added (K1 + sigma): the frequencies of a small ringing.
fn axes(&self) -> &[AxisInfo]
fn motors(&self) -> &[MotorInfo]
fn forward(&self, motors: &[f64], tool: &mut [f64])
fn state_len(&self) -> usize
§fn equilibrium(&self, tool: &[f64], state: &mut Vec<f64>, torque: &mut [f64])
fn equilibrium(&self, tool: &[f64], state: &mut Vec<f64>, torque: &mut [f64])
fn derivatives(&self, s: &[f64], torque: &[f64], out: &mut [f64])
fn tool_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn motor_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn set_payload_attached(&mut self, attached: bool)
§fn set_brake_engaged(&mut self, engaged: bool)
fn set_brake_engaged(&mut self, engaged: bool)
§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.§fn set_memory(&mut self, memory: &[f64])
fn set_memory(&mut self, memory: &[f64])
memory gave.§fn set_part_temperatures(&mut self, rises: &[f64])
fn set_part_temperatures(&mut self, rises: &[f64])
thermal_parts, in that order, for
the friction and losses that change with it.§fn unreachable(&self, tool: &[f64], slack: f64) -> Option<&'static str>
fn unreachable(&self, tool: &[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 signal_infos(&self) -> Vec<SignalInfo>
fn signal_infos(&self) -> Vec<SignalInfo>
base_signals, then those of effect_signals.§fn base_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn base_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
§fn effect_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn effect_signals(&self, s: &[f64], torque: &[f64], out: &mut Vec<f64>)
TORQUE_PARTS, LOSS_PREFIX, ENERGY_PARTS, FRICTION_SIGNALS, belt
stretch), appended after those of base_signals. They cost about one more evaluation of the machine’s
derivatives, so they are asked for only where they are recorded or added up.§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 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_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 scene(&self, s: &[f64], out: &mut Scene)
§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 rating_checks(&self) -> Vec<RatingCheck>
fn rating_checks(&self) -> Vec<RatingCheck>
§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 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], )
identify::fit_joints). By default through the tool: its pose by
forward, its speed and acceleration by central differences along the motors’ motion over ±0.1 ms, then
feedforward_torque_moving. A machine whose feedforward_torque_moving leaves out the speed terms of a
kinematics that is not linear overrides this.§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(
&self,
_tool_pos: &[f64],
_tool_dir: &[f64],
_out: &mut Vec<[f64; 2]>,
)
fn rigid_friction( &self, _tool_pos: &[f64], _tool_dir: &[f64], _out: &mut Vec<[f64; 2]>, )
motors), while the tool at tool_pos moves along tool_dir
(its rate per unit of path): [c, b] for c + b v at the speed v along the path, positive where the motor has to
give positive torque against it. For the time-optimal plan. 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 rigid_checks(
&self,
_tool_pos: &[f64],
_tool_vel: &[f64],
_tool_acc: &[f64],
_out: &mut Vec<f64>,
)
fn rigid_checks( &self, _tool_pos: &[f64], _tool_vel: &[f64], _tool_acc: &[f64], _out: &mut Vec<f64>, )
rating_checks (in its order) the
value of its signal in the loss-free rigid model at a tool pose, speed and acceleration (a screw’s speed, its
force, a rack’s feed force), or NaN where the rigid model does not give it (a life, a sync error). The plan keeps
each value within its check’s limit. Appends nothing where the machine does not tell (no row is planned).§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 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.§fn contact_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn contact_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
s: by default the tool’s (tool_state). The rates are linear
in the state’s rates.§fn contact_placed(&self, _s: &[f64], at: &[f64], out: &mut Vec<f64>)
fn contact_placed(&self, _s: &[f64], at: &[f64], out: &mut Vec<f64>)
s with the contact coordinates at at, the parts placed there for the slopes of an obstacle’s
clearance along them: by default the rest at the tool pose at (equilibrium).§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 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 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 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 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 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 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.