pub struct Movers {
pub track: Track,
pub body: f64,
pub payload: f64,
pub centre_offset: f64,
pub plate_mass: f64,
pub attraction: f64,
pub g: f64,
pub wheelbase: f64,
pub length: f64,
pub plate: f64,
pub start: Vec<f64>,
pub cycle: Option<Cycle>,
/* private fields */
}Expand description
The load the JointMachine drives: the movers on the track.
Fields§
§track: Track§body: f64A mover’s body without its magnet plate (whose mass is the joint’s rotor inertia), its payload, the plate.
payload: f64§centre_offset: f64The mass centre’s distance outside the centre line, m.
plate_mass: f64§attraction: f64§g: f64§wheelbase: f64§length: f64The body’s length along the track (for the gaps) and the magnet plate’s (for the segments’ shares).
plate: f64§start: Vec<f64>§cycle: Option<Cycle>Implementations§
Source§impl Movers
impl Movers
Trait Implementations§
Source§impl Mechanism for Movers
impl Mechanism for Movers
Source§fn dynamics(&self, q: &[f64], qd: &[f64], mass: &mut [f64], bias: &mut [f64])
fn dynamics(&self, q: &[f64], qd: &[f64], mass: &mut [f64], bias: &mut [f64])
The mass centre runs at v (1 + e k(s)) with the centre line’s speed v: T = m (1 + e k)^2 v^2 / 2, so the mass is m (1 + e k)^2 and the bias (the energy kept, the clothoid’s tangential force) m (1 + e k) e k’ v^2. The plate’s inertia stays on the centre line: the plate faces the coils, which lie on it (the drawn mover sits outside it, its body and payload with it), so only they move out with e.
Source§fn frame_momentum(
&self,
q: &[f64],
qd: &[f64],
rotor_spin: &[f64],
) -> Option<FrameMomentum>
fn frame_momentum( &self, q: &[f64], qd: &[f64], rotor_spin: &[f64], ) -> Option<FrameMomentum>
For effects.base_compliance, in the track’s frame (x, y in its plane, z up): each mover’s body and payload at
its mass centre, e outside the centre line square to the body’s heading, the mean over its rollers
(Track::mean_heading), which turns at the curvature the dynamics have (mean_curvature): it runs at
v t + e k v along that heading, v (1 + e k) where the two headings agree (a constant radius, a straight). The
magnet plate on the centre line at the rotor’s speed (rotor_spin, its mass times that speed), as a linear
motor’s forcer. The track lies level: the weight does no work and the first moment stays at its height.
Source§fn unreachable(&self, tool: &[f64], _slack: f64) -> Option<&'static str>
fn unreachable(&self, tool: &[f64], _slack: f64) -> Option<&'static str>
A pose that puts a mover on the one ahead of it (closer than a body’s length along the loop) cannot be stood in.
Source§fn scene(
&self,
q: &[f64],
_rotors: &[f64],
_rotor_speeds: &[f64],
out: &mut Scene,
)
fn scene( &self, q: &[f64], _rotors: &[f64], _rotor_speeds: &[f64], out: &mut Scene, )
From above: the motor segments along the centre line (MoverTrack::scene shades them by their warmth), the
movers outside it as the motor parts (their coils’ warmth shows on them), each with its payload.
Source§fn linear_motor(&self) -> bool
fn linear_motor(&self) -> bool
Machine::motor_linear. False by default.Source§fn potential(&self, _q: &[f64]) -> f64
fn potential(&self, _q: &[f64]) -> f64
fn set_payload_attached(&mut self, attached: bool)
Source§fn cam(&self) -> Option<CamMaster>
fn cam(&self) -> Option<CamMaster>
Machine::cam and Machine::cam_at: an electronic cam the mechanism runs as its cycle, its slaves the tool
axes. None by default.fn cam_at(&self, master: f64, out: &mut [[f64; 4]])
fn cam_curve(&self) -> Option<CamCurve>
Source§fn signal_infos(&self) -> Vec<SignalInfo>
fn signal_infos(&self) -> Vec<SignalInfo>
fn signals( &self, q: &[f64], qd: &[f64], qdd: &[f64], _force: &[f64], out: &mut Vec<f64>, )
fn rating_checks(&self) -> Vec<RatingCheck>
Source§fn collision_parts(&self) -> &'static [&'static str]
fn collision_parts(&self) -> &'static [&'static str]
scene draws that move with the load and can hit an obstacle (Machine::collision_bodies).fn scene_point(&self, tool: &[f64]) -> Option<[f64; 3]>
§fn passive_joints(&self) -> Vec<(f64, f64)>
fn passive_joints(&self) -> Vec<(f64, f64)>
§fn passive_signals(&self) -> Vec<SignalInfo>
fn passive_signals(&self) -> Vec<SignalInfo>
swing.<k>.angle.§fn passive_loss_row(&self) -> Option<(&'static str, &'static str)>
fn passive_loss_row(&self) -> Option<(&'static str, &'static str)>
power.<id>) and the owner’s key of the loss row of the passive joints’ dampers: by default the swinging
payload’s. None (no row) only where every passive joint’s damper is zero.§fn passive_rest(&self, _q: &[f64]) -> Vec<f64>
fn passive_rest(&self, _q: &[f64]) -> Vec<f64>
q (a contact pressed in by its load): all zero by
default.§fn passive_shift(&self, _q: &[f64], _passive: &[f64], out: &mut [f64])
fn passive_shift(&self, _q: &[f64], _passive: &[f64], out: &mut [f64])
passive rather than
at zero, into out (zeroed first): a forearm rocking on its rod. Zero by default (a swinging payload’s joints
do not move the flange’s frame).§fn passive_extra_damping(&self) -> Vec<f64>
fn passive_extra_damping(&self) -> Vec<f64>
dynamics applies (not in passive_joints’
pair), in their order, for the modes’ damping figures; missing entries 0.§fn passive_in_modes(&self) -> usize
fn passive_in_modes(&self) -> usize
§fn loss_row(&self) -> Option<(&'static str, &'static str)>
fn loss_row(&self) -> Option<(&'static str, &'static str)>
power.<id>) and the owner’s key; None (no row) by default.§fn loss_power(&self, _q: &[f64], _qd: &[f64]) -> f64
fn loss_power(&self, _q: &[f64], _qd: &[f64]) -> f64
loss_row takes out, W, at all joints’ q and qd (passive ones included): 0 by default.§fn links(&self) -> Vec<String>
fn links(&self) -> Vec<String>
Machine::links and Machine::set_link_change: the bodies whose inertial parameters a trace can be fitted for.fn set_link_change(&mut self, _link: usize, _factor: f64, _moment: [f64; 3])
§fn forward(&self, q: &[f64], tool: &mut [f64])
fn forward(&self, q: &[f64], tool: &mut [f64])
§fn inverse(&self, tool: &[f64], q: &mut [f64]) -> bool
fn inverse(&self, tool: &[f64], q: &mut [f64]) -> bool
false where it cannot be reached.§fn memory(&self) -> Vec<f64>
fn memory(&self) -> Vec<f64>
inverse carries from one call to the next (a numerical inverse’s last solution, which the next starts
from), as a fixed count of numbers, for Machine::memory. None by default.§fn set_memory(&self, _memory: &[f64])
fn set_memory(&self, _memory: &[f64])
memory gave (empty: none, as before the first inverse), as inverse keeps it: behind a lock.§fn condition(&self, _tool: &[f64]) -> Option<f64>
fn condition(&self, _tool: &[f64]) -> Option<f64>
Machine::condition at a tool pose; None where the tool is the joints.§fn tool_is_joints(&self) -> bool
fn tool_is_joints(&self) -> bool
forward and inverse as by default): then the joint speeds and
accelerations are the tool’s, without going through the Jacobian.§fn has_process(&self) -> bool
fn has_process(&self) -> bool
process_torque gives: then the machine
reports the power given to it as power.process. None by default.§fn process_torque(&self, _q: &[f64], _qd: &[f64], _out: &mut [f64])
fn process_torque(&self, _q: &[f64], _qd: &[f64], _out: &mut [f64])
q and speeds qd to out, positive
turning a joint up. Not conservative and not in dynamics: the torque breakdown counts it among the rest, and
the feedforward leaves it out, as a drive does not know it.§fn reads_jerk(&self) -> bool
fn reads_jerk(&self) -> bool
signals_with_jerk): the chain works it out only then, as it costs
three more evaluations of the machine’s derivatives.§fn signals_with_jerk(
&self,
q: &[f64],
qd: &[f64],
qdd: &[f64],
_qddd: &[f64],
force: &[f64],
out: &mut Vec<f64>,
)
fn signals_with_jerk( &self, q: &[f64], qd: &[f64], qdd: &[f64], _qddd: &[f64], force: &[f64], out: &mut Vec<f64>, )
signals with the joints’ jerk as well, for a mechanism that reads_jerk; zeros where it does not.§fn rigid_guide_loads(
&self,
_tool: &[f64],
_acc: &[f64],
_out: &mut Vec<[f64; 2]>,
)
fn rigid_guide_loads( &self, _tool: &[f64], _acc: &[f64], _out: &mut Vec<[f64; 2]>, )
Machine::rigid_guide_loads: the loads of the guides among signals, at a tool pose and acceleration.§fn collision_links(&self) -> &'static [&'static str]
fn collision_links(&self) -> &'static [&'static str]
scene draws, in order from the base to the tool, as the links that the check of the
machine’s own parts looks at (Machine::self_collision_capsules): each a capsule of half its width, not an
obstacle’s part. Empty by default: the machine’s own parts are then those of collision_parts.§fn flex_modes(&self) -> Vec<FlexMode>
fn flex_modes(&self) -> Vec<FlexMode>
flex_coupling gives them two-way, else not (one-way, as base::Based). Their count
must not change. Empty by default.§fn flex_loads(&self, _q: &[f64], _qd: &[f64], _qdd: &[f64], _out: &mut [f64])
fn flex_loads(&self, _q: &[f64], _qd: &[f64], _qdd: &[f64], _out: &mut [f64])
flex_modes at the driven joints’ positions q, speeds qd and accelerations qdd, in its
coordinate (N).§fn flex_shift(&self, _q: &[f64], _deflection: &[f64], _out: &mut [f64])
fn flex_shift(&self, _q: &[f64], _deflection: &[f64], _out: &mut [f64])
deflection, into out (zeroed first).§fn static_shift(&self, _q: &[f64], out: &mut [f64])
fn static_shift(&self, _q: &[f64], out: &mut [f64])
out (zeroed first): zero by default.§fn flex_coupling(
&self,
_q: &[f64],
_qd: &[f64],
_d: &[f64],
_dd: &[f64],
) -> Option<FlexCoupling>
fn flex_coupling( &self, _q: &[f64], _qd: &[f64], _d: &[f64], _dd: &[f64], ) -> Option<FlexCoupling>
FlexCoupling). None where they are
one-way (flex_loads), the default.