pub struct JointMachine<M: Mechanism> {
pub mechanism: M,
pub joints: Vec<JointSpec>,
pub elastic: bool,
pub thermal: Option<ThermalFeedback>,
pub gear_efficiencies: Vec<f64>,
pub axes: Vec<AxisInfo>,
pub motors: Vec<MotorInfo>,
/* private fields */
}Fields§
§mechanism: M§joints: Vec<JointSpec>§elastic: bool§thermal: Option<ThermalFeedback>§gear_efficiencies: Vec<f64>Per joint, the efficiency its own gearbox has at the reference temperature, which thermal’s law warms from:
empty where every joint has the shared [gearbox]’s (ThermalFeedback::efficiency). A machine whose joints have
gearboxes of their own ([gearbox.<k>]) sets it.
axes: Vec<AxisInfo>§motors: Vec<MotorInfo>Implementations§
Source§impl<M: Mechanism> JointMachine<M>
impl<M: Mechanism> JointMachine<M>
Sourcepub fn new(
mechanism: M,
joints: Vec<JointSpec>,
elastic: bool,
thermal: Option<ThermalFeedback>,
axes: Vec<AxisInfo>,
motors: Vec<MotorInfo>,
) -> Self
pub fn new( mechanism: M, joints: Vec<JointSpec>, elastic: bool, thermal: Option<ThermalFeedback>, axes: Vec<AxisInfo>, motors: Vec<MotorInfo>, ) -> Self
axes as many as joints, or fewer where the joints are redundant to the tool (a seven-joint arm whose tool has
six axes: the mechanism’s inverse resolves the redundancy); one motor per joint, in their order.
Sourcepub fn two_mass_frequency(&self, q: &[f64]) -> Option<f64>
pub fn two_mass_frequency(&self, q: &[f64]) -> Option<f64>
The lowest mode of a one-joint machine with an elastic transmission: the load (M) and the rotor seen at the joint
(J i^2) on the transmission’s spring k, f = sqrt(k (1/M + 1/(J i^2))) / (2 pi). None for more joints.
Source§impl<M: Mechanism> JointMachine<M>
impl<M: Mechanism> JointMachine<M>
Sourcepub fn joint_motion(
&self,
pos: &[f64],
vel: &[f64],
acc: &[f64],
) -> (Vec<f64>, Vec<f64>, Vec<f64>)
pub fn joint_motion( &self, pos: &[f64], vel: &[f64], acc: &[f64], ) -> (Vec<f64>, Vec<f64>, Vec<f64>)
The joints’ positions, speeds and accelerations for the tool’s pose, speed and acceleration. Where the tool is
the joints, those themselves. With as many axes as joints: q’ = J^-1 v and q’’ = J^-1 (a - J’ q’), J’ q’ the
second difference of the forward kinematics along q’. With fewer (a redundant arm): by central differences of
the mechanism’s inverse, which resolves the redundancy, along v and along a, so that speeds and accelerations
are those of the very joints it gives: q’ = (q(x + h v) - q(x - h v)) / 2h, q’’ = (q(x + h v) - 2 q(x) +
q(x - h v)) / h^2 + (q(x + k a) - q(x - k a)) / 2k, steps of 1e-3 of the tool’s units (the inverse’s solution is good
to about 1e-11, which a second difference over 1e-4 would multiply by 1e8).
Trait Implementations§
Source§impl<M: Mechanism> Machine for JointMachine<M>
impl<M: Mechanism> Machine for JointMachine<M>
Source§fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
fn frame_momentum(&self, s: &[f64]) -> Option<FrameMomentum>
The mechanism’s (Mechanism::frame_momentum, passive joints included), each rotor’s spin from the state.
Source§fn inverse(&self, tool: &[f64], motors: &mut [f64])
fn inverse(&self, tool: &[f64], motors: &mut [f64])
NaN where the pose cannot be reached: the controller never asks for one (see unreachable).
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])
With bending links, the tool (not the joints’ pose) at tool: the links bent by their load at rest.
Source§fn motor_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
fn motor_state(&self, s: &[f64], pos: &mut [f64], vel: &mut [f64])
rotors, written in place (called at every stage of the integration).
Source§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 q’’ + g) at the joint over the ratio, plus the rotor’s own J i q’‘, with q’’ what the tool’s acceleration asks at rest.
Source§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 q’’ = 0: per joint, at its speed q’ (joint_motion), the motor shaft’s friction (with the
gearbox’s drag) at i q’ and the joint’s own friction (guides, bearings, a screw nut’s preload) through the gearbox
as rigid_solve takes it: f(q’) / (i loss), the loss factor that of what the gearbox passes at rest, f plus the
weight it holds (driven back where the weight pulls the joint along). The brake is released and the stops are
not touched in a move.
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 friction in each joint (RotaryJoint::friction, its Coulomb level and viscous part, at the joint) as torque
at its motor while the tool moves along dir: through the ratio and what a screw or rack passes on
(extra_efficiency), the joint’s speed per speed along the path from the kinematics.
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 mechanism’s signals (Mechanism::signals) and each joint’s force (joint.<id>.force) at the joints’ motion,
with the force M q’’ + h that the rigid model passes to each joint (the process force left out, as the
feedforward leaves it out), read for each check of rating_checks; NaN for a life or a signal not among them.
A check on plan.<signal> reads analysis::Tally), not on the simulated signal.
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 joints’ motion (joint_motion), then rigid_motor_torque with the velocity terms: the Coriolis and
centripetal torques of M(q) changing with the pose, in joint space too.
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], )
Exact in joint coordinates, velocity terms included (feedforward_torque leaves them out): M q’’ + h at the
joint over the ratio, plus the rotor’s own J_rotor i q’’.
Source§fn twist(&self, torque: &[f64], acc: &[f64], out: &mut [f64])
fn twist(&self, torque: &[f64], acc: &[f64], out: &mut [f64])
Elastic: the gearbox’s static twist under what reaches it, (torque − J_rotor acc) i at the joint (ripple, motor
friction and the gearbox’s losses and damping left out), times the ratio. Zeros where the joints are rigid.
Behind a screw whose stiffness follows the nut, the far end’s: twist_at has the nut’s place.
Source§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 gear’s spring where the nut is, the rotor’s angle over the ratio (Gearbox::at).
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 joint meeting its stop within the step (RotaryJoint::stop_substeps). Each gear’s
efficiency switch near zero power at the step’s start (mech::Gearbox::fade_damping) on the inertia it drives
there, 1 / (M^-1)_kk of the load’s mass matrix (the other joints free): the cuts mech::fade_substeps asks for.
The most of them. The mass matrix only where a gear is near zero power.
Source§fn set_tool_force(&mut self, force: &[f64]) -> bool
fn set_tool_force(&mut self, force: &[f64]) -> bool
The push acts on the joints beyond the gearboxes and on the links’ bending modes, as the tool moves with each
(push_on_joints, push_on_modes), in either model; its power is the budget’s crash row.
Source§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), and so do the joints’
presliding friction states (ShaftFriction::commit).
Source§fn memory(&self) -> Vec<f64>
fn memory(&self) -> Vec<f64>
The mechanism’s, then the gearboxes’ hysteresis anchors, then those of the joints whose friction has a presliding state.
Source§fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>
Elastic: per joint its gearbox’s spring (K1, in series with a converter’s own compliance behind it) between the rotor and the joint’s rigid inertia M_kk with the other joints held, referred to the motor over the ratio.
Source§fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>
One joint: the lowest of its two-mass mode and its passive joints’ (single_joint_modes). An arm: the lowest of
its joints’ modes with the motors held (held_modes, or with the links’ bending two-way coupled_modes): each
turns the joints and so moves the tool.
Source§fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>
One joint’s two-mass mode and its passive joints’ (single_joint_modes), or an arm’s joints with the motors held
(held_modes), and the links’ bending modes (Mechanism::flex_modes), lowest first; two-way, the modes of joints
and links together with the motors held (coupled_modes).
Source§fn friction_contacts(&self) -> Vec<FrictionContact>
fn friction_contacts(&self) -> Vec<FrictionContact>
Each joint’s friction (RotaryJoint::friction_split: with a slide’s presliding also the rise to its breakaway
level), owned by the joint’s axis: the friction view spans that
axis’s speed limit (with the joint’s own key it found no axis and spanned 1 m/s or rad/s).
Source§fn thermal_parts(&self) -> Vec<ThermalPart>
fn thermal_parts(&self) -> Vec<ThermalPart>
The gearboxes, where there are gearboxes (not on a direct drive).
Source§fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
fn collision_bodies(&self, s: &[f64]) -> Vec<Aabb>
The boxes of the scene that the mechanism names (Mechanism::collision_parts).
Source§fn self_collision_capsules(&self, s: &[f64]) -> Vec<Capsule>
fn self_collision_capsules(&self, s: &[f64]) -> Vec<Capsule>
The links of the mechanism (Mechanism::collision_links) as capsules, for the check of the machine’s own parts.
Source§fn connected_bodies(
&self,
s: &[f64],
boxes: usize,
capsules: usize,
) -> Option<Vec<(usize, usize)>>
fn connected_bodies( &self, s: &[f64], boxes: usize, capsules: usize, ) -> Option<Vec<(usize, usize)>>
The exact adjacency of the links: link i with link i + 1, across a link of no length (the frames of a spherical wrist coincide) to the next one, and with the links of no length at the end of the next one; the tool’s boxes with the last two links that have a length and those after them (the flange box reaches back over the link before the last). The obstacles’ capsules come first among the capsules and are not joined to anything here.
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 rating_checks(&self) -> Vec<RatingCheck>
fn rating_checks(&self) -> Vec<RatingCheck>
Source§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.Source§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.Source§fn cam_curve(&self) -> Option<CamCurve>
fn cam_curve(&self) -> Option<CamCurve>
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 forward(&self, motors: &[f64], tool: &mut [f64])
fn state_len(&self) -> usize
fn derivatives(&self, s: &[f64], torque: &[f64], out: &mut [f64])
fn tool_state(&self, s: &[f64], pos: &mut [f64], vel: &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.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.Source§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 set_payload_attached(&mut self, attached: bool)
Source§fn links(&self) -> Vec<String>
fn links(&self) -> Vec<String>
identify::fit_joints), by name: the links
of a URDF chain. None by default.Source§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.Source§fn set_brake_engaged(&mut self, engaged: bool)
fn set_brake_engaged(&mut self, engaged: bool)
Source§fn set_memory(&mut self, memory: &[f64])
fn set_memory(&mut self, memory: &[f64])
memory gave.Source§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.Source§fn setpoint_slack(&self) -> f64
fn setpoint_slack(&self) -> f64
Source§fn condition(&self, tool: &[f64]) -> Option<f64>
fn condition(&self, tool: &[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.Source§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.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 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.Source§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.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.fn scene(&self, s: &[f64], out: &mut Scene)
Source§fn scene_point(&self, tool: &[f64]) -> Option<[f64; 3]>
fn scene_point(&self, tool: &[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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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).Source§fn set_dwelling(&mut self, _dwelling: bool)
fn set_dwelling(&mut self, _dwelling: 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 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.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>)
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).Source§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.Source§fn valves(&self) -> Vec<(String, f64)>
fn valves(&self) -> Vec<(String, f64)>
valves and wait. None
by default.Source§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.Source§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.Source§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.Source§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.Source§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).Source§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.Source§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.Source§fn gantry_motors(&self) -> Option<[usize; 2]>
fn gantry_motors(&self) -> Option<[usize; 2]>
gantry.sync). None without one.Source§fn signals(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)
fn signals(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)
signal_infos.Source§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.Source§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.Source§fn belt_sections(&self) -> Vec<BeltSection>
fn belt_sections(&self) -> Vec<BeltSection>
Source§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.