pub struct ConfigMachine { /* private fields */ }Implementations§
Source§impl ConfigMachine
impl ConfigMachine
Sourcepub fn racking_moment(&self, pos: &[f64], acc: &[f64]) -> Option<f64>
pub fn racking_moment(&self, pos: &[f64], acc: &[f64]) -> Option<f64>
The racking moment of a yawing gantry (effects.gantry_yaw) at a tool pose and acceleration, N m: what the belts’
pull on the bridge’s ends (rigid_tensions), its drives at its sides and gravity put on its yaw beyond what
turns the bodies on it with the bridge held square, in the loss-free rigid model. The yaw’s spring takes it while
the acceleration lasts (signal gantry.None without a yawing
gantry.
Trait Implementations§
Source§impl Machine for ConfigMachine
impl Machine for ConfigMachine
Source§fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
Each body moving with its axes (an axis with the id x, y or z along that direction), over ground with the frame’s
sway and the lean; the frame’s own mass in its sway; a rotary axis’s inertia turning about its own axis; the process
force on the tool, each along its axis’s direction (dirs, whatever the axis’s id). The belt drives’ spin: a
pulley, its rotor and the idlers turn about the normal of the belt’s plane (belt_plane), a screw’s rotor about
its axis, I w each. The sense of a wheel: the belt along its section’s route turns it as its clockwise says (seen
from the front, from above for a flat belt), and a positive pulley turn and an idler’s positive speed move the
belt as the first pulley of the section feeds it (route_sense). A rack’s pinion turns about up x e (e the rack’s
direction, the pinion riding with the axis above the rack fixed to the frame; a vertical rack’s y x e), a rotary’s motor about the rotary’s own axis, positive
as the axis grows. The belt’s runs carry angular momentum m x (mu L y) too, each about the middle of its straight
piece (run_ends); the arcs round the wheels are in the wheels’ spin. What does not move is left out (see
FrameMomentum).
Source§fn forward(&self, motors: &[f64], tool: &mut [f64])
fn forward(&self, motors: &[f64], tool: &mut [f64])
The motors set the coordinates they can (k_inv); a gantry’s yaw they leave to its spring stands at 0.
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 tool is where the axes put it on the frame, and the frame sways: the workpiece stands on the floor.
Source§fn scale_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn scale_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
The carriage’s position against the frame: the frame’s sway and the lean are not in it.
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], )
With the joints’ motion of the tool’s (joint_motion) and the forces its speed asks of the bodies on rotaries
(inertial). Where a gantry’s yaw is driven, its row asks the two drives for the moment that keeps the bridge
square: they share the bridge’s load by the lever rule.
Source§fn rigid_tensions(&self, pos: &[f64], acc: &[f64], out: &mut Vec<f64>)
fn rigid_tensions(&self, pos: &[f64], acc: &[f64], out: &mut Vec<f64>)
The belt pulls the bodies (with chains and idlers) with the force F their masses take, without pulleys and rotors, -C^T T = F, and each closed belt keeps its length: sum_s (T_s - P) L_s = 0 over its geometric section lengths (the elastic law to first order in T / EA).
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]>)
Each guide’s load (guide_load, with what a linear motor presses on it) at the axis positions pos and
accelerations acc: at rest its weight across the axis and the press, moving the overhang’s tilt (and side
load), m a (2 |lever| / spacing (+ 1)), signed with the acceleration.
Each guide’s Coulomb and viscous friction (Lugre::steady) on its axis’s coordinate, as torque at the motors by
the map the rigid forces take (to_motors).
Each guide’s level takes its load at rest at the pose (the load scale load_scales has, 1 without
effects.load_dependent_friction); a moving overhang’s added load follows the acceleration, which this does not
see (rigid_guide_loads gives it). The pair [c, b] of c + b v has no room for the Stribeck rise, which fades
within a few v_s: rigid_friction_rise gives it.
Source§fn rigid_friction_rise(
&self,
pos: &[f64],
dir: &[f64],
out: &mut Vec<Vec<[f64; 2]>>,
)
fn rigid_friction_rise( &self, pos: &[f64], dir: &[f64], out: &mut Vec<Vec<[f64; 2]>>, )
The guides’ Stribeck rise per motor, [level, speed]: the friction beyond c + b v is level exp(-(v / speed)^2) at
the speed v along the path, level the guides’ (stiction - Coulomb) at their load at rest taken to the motor as
rigid_friction does, signed by the way each axis turns, and its Stribeck speed along the path (the guide’s over
its axis’s rate): a pair per guide that reaches the motor.
Source§fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
fn steady_friction(&self, pos: &[f64], vel: &[f64], out: &mut [f64])
rigid_solve at a steady speed: the guides (Lugre::feedforward, at their load at rest), idlers and cable chains
as forces on the axes, taken to the motors as the rigid forces are (to_motors), over each gearbox’s loss factor
for what it passes at rest (that friction less the weight; the loss on the weight counts as friction), plus each shaft’s friction at its rotor’s speed.
Source§fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
Elastic model: per motor its gearbox’s spring (K1 holds a screw’s or rack’s own compliance) in series with the belt sections its pulley feeds or takes from, r r_mat sum f^2 EA / l at the pulley over the sections’ lengths at the pose; the rotor (and gearbox input) on the motor’s side, the pulley with the load (so more is kept back). Referred to the motor over the ratio. A drive with no spring (a linear motor) has none.
Source§fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
The lowest belt mode (belt_mode), in the elastic model.
Source§fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
Every mode of mode_matrices, lowest first (the first is resonance_hz‘s): the belts’, a yawing bridge’s, the
frame’s, the lean’s and the beam’s, with the pulleys and rotors held. Each mode’s damping ratio is x^T C(w) x /
(2 w), x its shape with x^T M x = 1 and C at its w (mode_damping), as the crates’ chain::matrix_modes takes it.
Source§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 axes and the frame move, pulleys and rotors stand. Scaled so that the tool’s
largest travel along an axis is 1 m, positive (with the frame the tool moves with it, see tool_state).
Source§fn belt_wraps(&self, tool_pose: &[f64]) -> Vec<f64>
fn belt_wraps(&self, tool_pose: &[f64]) -> Vec<f64>
With effects.belt_wrap: per motor the wrap at its pulley (geometry::wrap), from where the 3D view puts it and
the wheels before and after it along the belt (wrap_neighbours) at this pose, in the belt’s plane (elt_plane); NaN
for a motor that drives no belt (a screw, rack, linear motor or rotary).
Source§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).
Source§fn after_step(&mut self, s: &mut [f64], dt: f64)
fn after_step(&mut self, s: &mut [f64], dt: f64)
Belt tooth jump at each motor pulley (ToothJump): a positive slip feeds the section the pulley feeds.
Source§fn set_part_temperatures(&mut self, rises: &[f64])
fn set_part_temperatures(&mut self, rises: &[f64])
The gearboxes (where there are some) and the guides, in the order of thermal_parts.
Source§fn gantry_motors(&self) -> Option<[usize; 2]>
fn gantry_motors(&self) -> Option<[usize; 2]>
The checks of the screws (speed, d n, buckling, static load, life), racks (feed force) and strain wave gears (life, where the motor’s ratings.required_life_h is set), as the registered one-axis machines judge them.
Source§fn thermal_parts(&self) -> Vec<ThermalPart>
fn thermal_parts(&self) -> Vec<ThermalPart>
The gearboxes (not on a direct drive, see Gearbox::is_coupling), then the guides, each shown by the first
body it carries (or its overhang).
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>)
The rigid model has no belt stretch: it reports pretension, zero stretch and no slack. A section is taken to wrap the pulleys it ends at by half a turn, so the radial load on a pulley’s shaft is the sum of the tensions of the sections that end there.
Source§fn scene(&self, s: &[f64], out: &mut Scene)
fn scene(&self, s: &[f64], out: &mut Scene)
A plain scene: a beam, a box per body, a drive unit per motor at its pulley’s at_m, the idlers, and the belt
round its pulleys and idlers: each section from tangent to tangent through its route (belt_line), shaded by its
tension against the pretension, and the wraps round the motors’ pulleys between sections (pulley_wraps).
Source§fn scene_point(&self, tool_pose: &[f64]) -> Option<[f64; 3]>
fn scene_point(&self, tool_pose: &[f64]) -> Option<[f64; 3]>
The tool’s tip: where the straight axes put the rotaries, plus the tool turned by them.
Source§fn unreachable(&self, tool_pose: &[f64], slack: f64) -> Option<&'static str>
fn unreachable(&self, tool_pose: &[f64], slack: f64) -> Option<&'static str>
With a tcp: the tool’s tip where the straight axes would have to stand beyond their strokes.
fn axes(&self) -> &[AxisInfo]
fn motors(&self) -> &[MotorInfo]
Source§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.Source§fn inverse(&self, tool: &[f64], motors: &mut [f64])
fn inverse(&self, tool: &[f64], motors: &mut [f64])
fn state_len(&self) -> usize
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])
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])
Source§fn rigid_guide_loads(&self, pos: &[f64], acc: &[f64], out: &mut Vec<[f64; 2]>)
fn rigid_guide_loads(&self, pos: &[f64], 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 set_payload_attached(&mut self, attached: bool)
Source§fn set_dwelling(&mut self, dwelling: bool)
fn set_dwelling(&mut self, dwelling: bool)
Source§fn set_tool_force(&mut self, force: &[f64]) -> bool
fn set_tool_force(&mut self, force: &[f64]) -> bool
contact_state, by default the tool’s: one component per axis, N,
or N m on a rotary axis; the generalised force of each), held until changed: an obstacle’s push on the parts
that can touch it (effects.crash). Returns whether the machine takes it; by default false (not supported), and
the push then acts on the motors through the rigid kinematics. The force’s power is not in the machine’s loss
rows: the simulation integrates it as the obstacles’ work (the budget’s crash row), F . the contact coordinates’
rates. Machines that take it put its generalised forces into their equations beyond their transmissions, at every
stage of the integration (tool_force_on_rates): the machine files’ ConfigMachine, the joint machines
(chain::JointMachine) and most machine crates. The default stays where the machine’s equations are another’s
that does not take it.Source§fn set_brake_engaged(&mut self, engaged: bool)
fn set_brake_engaged(&mut self, engaged: bool)
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 signal_infos(&self) -> Vec<SignalInfo>
fn signal_infos(&self) -> Vec<SignalInfo>
base_signals, then those of effect_signals.Source§fn rating_checks(&self) -> Vec<RatingCheck>
fn rating_checks(&self) -> Vec<RatingCheck>
Source§fn friction_contacts(&self) -> Vec<FrictionContact>
fn friction_contacts(&self) -> Vec<FrictionContact>
Source§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.Source§fn belt_sections(&self) -> Vec<BeltSection>
fn belt_sections(&self) -> Vec<BeltSection>
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>)
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.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 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_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_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 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 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 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 collision_bodies(&self, state: &[f64]) -> Vec<Aabb>
fn collision_bodies(&self, state: &[f64]) -> Vec<Aabb>
state. By
default the tool alone, as a point where scene_point puts it (none without that mapping); a machine names
the boxes of its scene that move with the tool through scene::scene_boxes.§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_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 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.