pub struct Model {Show 37 fields
pub entry: &'static MachineEntry,
pub lang: &'static str,
pub tr: Translations,
pub config: Config,
pub file: String,
pub session: Session,
pub scopes: Vec<Scope>,
pub history: History,
pub frozen: Option<History>,
pub runs: RunStore,
pub units: Units,
pub window_s: f64,
pub scene: Scene,
pub paused: bool,
pub speed: f64,
pub exaggeration: f64,
pub target: Vec<f64>,
pub messages: Vec<Message>,
pub tuning_axis: usize,
pub tuning: Option<Tuning>,
pub inputs: Inputs,
pub cycle_report: Option<(CycleLoad, Vec<Verdict>, Curves)>,
pub bands: Option<Vec<Band>>,
pub band_samples: usize,
pub worst: Option<(Vec<Worst>, Vec<String>)>,
pub sensitivity: Option<(CycleLoad, Vec<Sensitivity>)>,
pub optimised: Option<Optimised>,
pub candidates: Option<(Vec<Candidate>, String)>,
pub path_run: Option<PathRun>,
pub trail: Option<Vec<[f64; 3]>>,
pub trace_fit: Option<TraceFit>,
pub sweeps: Option<Vec<Vec<SweepPoint>>>,
pub sweep_fit: Option<(usize, SweepFit)>,
pub comparison: Option<(String, Comparison)>,
pub views: Views,
pub loop_response: LoopResponse,
pub insight: Insight,
/* private fields */
}Fields§
§entry: &'static MachineEntry§lang: &'static str§tr: Translations§config: ConfigThe config as edited. The simulation may yet refuse the last edits.
file: StringThe file the config was last opened from or saved to (“” for none): apart from the field a path is typed
into, which may name a file about to be opened. A JSON machine file is held here too (to be reopened at the
next start), though Save does not write over it (save_target).
session: Session§scopes: Vec<Scope>§history: History§frozen: Option<History>The scopes’ window as it was when they were frozen; the simulation runs on meanwhile. Only the window is kept, not the whole history, which on the six-axis arm is a hundred megabytes.
runs: RunStoreThe runs kept for comparing (runs), and the units speeds and lengths are shown in.
units: Units§window_s: f64Seconds of history the scopes show.
scene: Scene§paused: bool§speed: f64§exaggeration: f64How many times larger the 3D view draws the parts’ deflections (Scene::exaggeration).
target: Vec<f64>Target of the next point-to-point move, per axis.
messages: Vec<Message>§tuning_axis: usize§tuning: Option<Tuning>§inputs: Inputs§cycle_report: Option<(CycleLoad, Vec<Verdict>, Curves)>Results of the analysis panel, each for the config as it was when it was asked for. With the motors’ torque-speed curves, to plot the operating points over.
bands: Option<Vec<Band>>The checks of the cycle with their error bands, where the cycle was analysed with them.
band_samples: usizeHow many samples those bands are of; 0: each bounded value alone at its low and at its high bound.
worst: Option<(Vec<Worst>, Vec<String>)>Per check the worst corner of the bounds found, and the paths of the bounds in the order its high has them.
sensitivity: Option<(CycleLoad, Vec<Sensitivity>)>The cycle as configured and the varied parameters, strongest first.
optimised: Option<Optimised>§candidates: Option<(Vec<Candidate>, String)>The motors of the search as ranked, and the supply they were searched for.
path_run: Option<PathRun>§trail: Option<Vec<[f64; 3]>>Where the tool has been in the 3D scene since the machine took the planned path, a point per 0.1 mm of
travel and the newest session::TRAIL of them: the path it really took, to draw beside the planned one. None
before the machine has taken a path (it may refuse it), and after a reconfigure or the start of a cycle.
trace_fit: Option<TraceFit>§sweeps: Option<Vec<Vec<SweepPoint>>>Per motor the frequency response, at the frequencies inputs gave when it was asked for.
sweep_fit: Option<(usize, SweepFit)>The measured response’s fit, and the motor it was taken on.
comparison: Option<(String, Comparison)>The effect comparison, with the effect that was switched.
views: ViewsThe search’s views, the ratio sweep, the kinematics comparison and the path tab’s move maps (search_views).
loop_response: LoopResponseThe loop-response tab’s measurement and its result (frequency).
insight: InsightThe mode list, the band runs over the cycle’s traces and their job (insight).
Implementations§
Source§impl Model
impl Model
pub fn new(entry: &'static MachineEntry, lang: &'static str) -> Self
Sourcepub fn set_machine(&mut self, entry: &'static MachineEntry)
pub fn set_machine(&mut self, entry: &'static MachineEntry)
Switching machine restarts the simulation with that machine’s default config.
Sourcepub fn open_config(&mut self, path: &str)
pub fn open_config(&mut self, path: &str)
Opens a config file for the machine shown: it replaces the running config, as switching machine does.
A file that cannot be read, or that the machine refuses, is reported and the running config stays.
A config of another machine (one this machine refuses and that one reads) switches to that machine.
A machine file (one with a [machine] table, or any .json; see docs/machine-files.md) brings its own
machine and replaces the machine shown too.
Sourcepub fn save_config(&mut self, path: &str)
pub fn save_config(&mut self, path: &str)
Writes the config as edited to a file: over the text it was read from, so that the comments and layout of that file stay, wherever only values have changed. A file that holds a config of another machine is not overwritten.
Sourcepub fn apply_parts(&mut self)
pub fn apply_parts(&mut self)
Names the parts typed in inputs.parts in the config and applies it to the running simulation, as
the motor search’s button does. A name the catalogue does not have is refused, and so is any name in a
config without [parts], as on the command line.
pub fn set_language(&mut self, lang: &'static str)
pub fn set_paused(&mut self, paused: bool)
pub fn set_speed(&mut self, speed: f64)
pub fn set_exaggeration(&mut self, factor: f64)
Sourcepub fn set_param(&mut self, path: &str, value: Value)
pub fn set_param(&mut self, path: &str, value: Value)
Edits one config value and applies the config to the running simulation.
Sourcepub fn save_target(&self) -> Option<String>
pub fn save_target(&self) -> Option<String>
Where Save puts the config without asking: the file last opened or saved to, but not a JSON machine file (the
config is written as TOML); None where the file dialog is to be asked.
Sourcepub fn save_suggestion(&self) -> String
pub fn save_suggestion(&self) -> String
Where the file dialog starts when Save is asked for over an open and save_target has no file: beside the JSON
machine file the config came from, as TOML; nowhere for a config from no file (not the field, which names the
file about to be opened).
Sourcepub fn dirty(&self) -> bool
pub fn dirty(&self) -> bool
The config differs from what was last opened, saved or taken from the machine’s default.
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
Sourcepub fn undo(&mut self)
pub fn undo(&mut self)
Takes the last edit of the config back, and applies the config to the running simulation.
Sourcepub fn set_value(&mut self, assignment: &str)
pub fn set_value(&mut self, assignment: &str)
Applies one path = value (TOML value) to the config and the running simulation, as sim-cli --set does:
a key the config does not have, a value of another type or text that is no assignment is refused with the
CLI’s message; a value the simulation refuses (outside a bound) comes back with poll, as with any edit.
Sourcepub fn set_at_start(&mut self, assignments: &[String]) -> Result<(), Message>
pub fn set_at_start(&mut self, assignments: &[String]) -> Result<(), Message>
sim-app --set path=value, each in turn, before the window opens: the machine restarts with them, and a
saved file still has the comments and order of the one read. The first refusal is returned, with nothing
applied.
pub fn command(&mut self, command: Command)
Sourcepub fn poll(&mut self)
pub fn poll(&mut self)
Takes in what the simulation and a running tuning job have produced since the last frame.
Sourcepub fn set_frozen(&mut self, frozen: bool)
pub fn set_frozen(&mut self, frozen: bool)
Freezing keeps the traces in the window as they are for a closer look; the simulation runs on.
Sourcepub fn visible_rows(
&self,
) -> impl DoubleEndedIterator<Item = &[f64]> + ExactSizeIterator + Clone
pub fn visible_rows( &self, ) -> impl DoubleEndedIterator<Item = &[f64]> + ExactSizeIterator + Clone
The rows the scopes show: the last window_s seconds of the live or the frozen history.
Sourcepub fn stats(&self, signal: usize) -> Option<Stats>
pub fn stats(&self, signal: usize) -> Option<Stats>
What a trace did in the scopes’ window. All signals’ are worked out in one pass over the window and kept while the scopes show the same, so a frame with many lines does not go over the window once per line.
Sourcepub fn export_traces(&mut self, path: &Path)
pub fn export_traces(&mut self, path: &Path)
Writes what the scopes show (every signal, the visible time window) as CSV, in the background: a minute of the
six-axis arm is some hundred megabytes of text. The message comes with poll.
Sourcepub fn rated(&self, run: Run) -> Run
pub fn rated(&self, run: Run) -> Run
run with what the config’s machine says about its motors and resonances (Run::rated).
Sourcepub fn rated_with(&self, run: Run, config: &Config) -> Run
pub fn rated_with(&self, run: Run, config: &Config) -> Run
rated for a run made with another config of this machine (the compared ghost’s).
Sourcepub fn record_run(&mut self, assignments: &str, file: &str)
pub fn record_run(&mut self, assignments: &str, file: &str)
Records the configured cycle of another config as a run, in the background: the config shown, or the config or
machine file file (of any machine), with each of assignments applied as sim-cli --set does (separated by
; or new lines), e.g. another motor through parts.motor = "1FK2208-4AF" or another gain. A file or an
assignment that is refused is said, and nothing runs.
Sourcepub fn recording_runs(&self) -> bool
pub fn recording_runs(&self) -> bool
Runs still being recorded.
Sourcepub fn run_plots(&self) -> Vec<RunPlot>
pub fn run_plots(&self) -> Vec<RunPlot>
The shown runs per quantity of Quantity::ALL that one of them has (see RunPlot), in the chosen units.
Sourcepub fn runs_table(&self) -> Option<Table>
pub fn runs_table(&self) -> Option<Table>
The key figures of the kept runs side by side (runs::Figures): one column per run, the reference marked, then
one column per other run with its value less the reference’s (“Δ label”; for the verdicts, the failed checks
less the reference’s), in the chosen units. None with no run kept.
pub fn report_running(&self) -> bool
Sourcepub fn export_report(&mut self, path: &str)
pub fn export_report(&mut self, path: &str)
Writes the sizing report of the config as it is now (sim_components::report) to path, as PDF for a name
ending in .pdf and as HTML otherwise, with the error bands where the analysis panel asks for them. In the
background: the cycle and the bands take a while.
pub fn tuning_running(&self) -> bool
Sourcepub fn run_tuning(&mut self, axis: usize)
pub fn run_tuning(&mut self, axis: usize)
Measures step and frequency response of one axis with the config as it is now, in the background on a simulation of its own. The running machine is not disturbed.
pub fn analysis_running(&self) -> bool
pub fn running(&self, kind: Analysis) -> bool
Sourcepub fn working(&self) -> bool
pub fn working(&self) -> bool
Any background job is still under way: its answer comes with poll, which the window must go on calling, so
it does not idle meanwhile (update_mode in main.rs).
Sourcepub fn job_progress(&self, job: JobRef) -> Option<Arc<Progress>>
pub fn job_progress(&self, job: JobRef) -> Option<Arc<Progress>>
The progress (runs done and planned so far, the plan grows as the job goes) and the cancel switch of a
background job under way; None where there is none.
Sourcepub fn job_counts(&self, job: JobRef) -> Option<(usize, usize)>
pub fn job_counts(&self, job: JobRef) -> Option<(usize, usize)>
Runs done and planned of a job under way. Planned 0: it has not counted anything yet.
Sourcepub fn cancel_job(&self, job: JobRef)
pub fn cancel_job(&self, job: JobRef)
Stops a background job: it stops starting runs and poll takes it as ended, with a message that it was
cancelled; what was computed before stays as it was. A run already started is not interrupted.
pub fn has_result(&self, kind: Analysis) -> bool
Sourcepub fn outdated(&self, kind: Analysis) -> bool
pub fn outdated(&self, kind: Analysis) -> bool
The result of this kind was computed for a config that has been changed since. A motor search does not depend on the parts the config names, so naming one of its motors does not outdate it.
Sourcepub fn run_analysis(&mut self, kind: Analysis)
pub fn run_analysis(&mut self, kind: Analysis)
Starts one computation of the analysis panel with the config as it is now, in the background on simulations of its own, like the tuning measurement. The running machine is not disturbed.
The search, the path and the trace take what inputs holds at this moment. A path is planned from
where the machine stands, and when its analysis is back the machine runs it too (see poll).
pub fn clear_analysis(&mut self)
Sourcepub fn use_candidate(&mut self, row: usize)
pub fn use_candidate(&mut self, row: usize)
Names a motor of the search (and its gearbox, where it was searched with one, its drive and its axis, where it
was tried on one) in [parts] of the config and applies it to the running simulation: the row of search_table
after the header. A row of an axis ruled out has no motor and names nothing. The
candidate passed or failed on the config that was searched, so over a config changed since in
anything but its part names nothing is applied.
Sourcepub fn apply_optimised(&mut self)
pub fn apply_optimised(&mut self)
Puts the settings the optimiser found into the config and applies it to the running simulation. They are absolute values, found for the config the optimiser started with: over a config edited since they would undo an edit, or fail a check they were found to pass. Then nothing is applied; the result stays, for when the edit is taken back.
Sourcepub fn cycle_tables(&self) -> Vec<Table> ⓘ
pub fn cycle_tables(&self) -> Vec<Table> ⓘ
The analysed cycle as the tables of load_tables. Empty until a cycle was analysed.
Sourcepub fn worst_table(&self) -> Option<Table>
pub fn worst_table(&self) -> Option<Table>
The worst corners of the bounds, where the cycle was analysed with that search: per check and motor the worst value found, its limit there and the result, and which bounded values are at their high and which at their low bound (their config paths, separated by commas).
Sourcepub fn check_key(&self, check: &str, motor: Option<usize>) -> String
pub fn check_key(&self, check: &str, motor: Option<usize>) -> String
The label key of a check (report::check_key): the motor’s kind decides its unit; without a motor the first one’s.
Sourcepub fn search_table(&self) -> Option<Table>
pub fn search_table(&self) -> Option<Table>
The motors of the search as ranked: passing ones first, cheapest first. Per motor its gearbox and axis (empty:
the config’s own), the mass of motor and gearbox, the installed mass that stands in for the price
(Candidate::cost), result, and the check nearest to its limit with value over limit, or why the cycle was
not run. An axis ruled out by its catalogue numbers has a row without motor. No more columns than the panel is
wide: the cycle analysis has the rest.
Sourcepub fn path_tables(&self) -> Vec<Table> ⓘ
pub fn path_tables(&self) -> Vec<Table> ⓘ
The path that was run as the three tables of load_tables. Empty until a path was run.
Sourcepub fn path_plot(&self) -> Option<(String, String, Vec<[f64; 2]>)>
pub fn path_plot(&self) -> Option<(String, String, Vec<[f64; 2]>)>
The planned path for a plot, with the labels of its two directions: the second axis over the first, or on a machine with one axis its position over the time.
Sourcepub fn trace_tables(&self) -> Vec<Table> ⓘ
pub fn trace_tables(&self) -> Vec<Table> ⓘ
The replayed trace as two tables: per motor how far the simulation is from the trace (torque and following error, RMS and peak of the difference), and per axis and fitted value what the config has, what the trace says and the standard error of that. Empty until a trace was replayed.
Sourcepub fn trace_advice(&self) -> Vec<String>
pub fn trace_advice(&self) -> Vec<String>
What the fit says to change in the config, one line per value, and which axis it could not fit.
Sourcepub fn overlay(&self) -> &Overlay
pub fn overlay(&self) -> &Overlay
Measured against simulated, per quantity of OVERLAY_KEYS (torque, speed, following error at the motor)
and per motor: (time, measured value) and (time, simulated value). Empty until a trace was replayed.
Worked out once, when the trace arrives: a frame used to copy the whole trace for it.
Sourcepub fn export_overlay(&mut self, path: &Path)
pub fn export_overlay(&mut self, path: &Path)
Writes the overlay as sim-cli replay --out does, in the background; the message comes with poll.
Sourcepub fn points_table(&self, rows: Range<usize>) -> Option<(usize, Table)>
pub fn points_table(&self, rows: Range<usize>) -> Option<(usize, Table)>
The operating points of the analysed cycle, as sim-cli analyze --points writes them, motor after motor:
how many there are, and the header with the rows in rows. None until a cycle was analysed.
Sourcepub fn speed_label(&self) -> String
pub fn speed_label(&self) -> String
The label of the motor speed’s axis in the unit chosen; m/s where every motor is linear.
Sourcepub fn torque_label(&self) -> String
pub fn torque_label(&self) -> String
The label of the motor torque’s axis: a force in N where every motor is linear.
Sourcepub fn motor_is_linear(&self, k: usize) -> bool
pub fn motor_is_linear(&self, k: usize) -> bool
Whether motor k is linear (Machine::motor_linear).
Sourcepub fn motor_speed_label(&self, k: usize) -> String
pub fn motor_speed_label(&self, k: usize) -> String
The speed axis label of motor k’s chart: a machine with rotary and linear motors has each on its own unit.
Sourcepub fn motor_torque_label(&self, k: usize) -> String
pub fn motor_torque_label(&self, k: usize) -> String
The torque axis label of motor k’s chart.
Sourcepub fn motors_linear(&self) -> bool
pub fn motors_linear(&self) -> bool
Whether every motor of the machine is linear (Machine::motor_linear): speeds in m/s, forces in N.
Sourcepub fn speed_scale(&self) -> f64
pub fn speed_scale(&self) -> f64
The factor of the motor speeds in the unit chosen: rpm applies to rotary motors only.
Sourcepub fn motor_speed_scale(&self, k: usize) -> f64
pub fn motor_speed_scale(&self, k: usize) -> f64
The factor of motor k’s speeds: 1 for a linear motor (m/s), else the unit chosen.
Sourcepub fn points_plot(
&self,
kind: Analysis,
) -> Option<(Vec<Vec<[f64; 2]>>, Curves)>
pub fn points_plot( &self, kind: Analysis, ) -> Option<(Vec<Vec<[f64; 2]>>, Curves)>
The operating points per motor as (speed, torque), and the torque-speed curves (Curves): of the analysed
cycle (Analysis::Cycle) or of the path that was run (Analysis::Path). None until there is one.
Sourcepub fn breakdown_lines(&self) -> Vec<(String, Vec<(String, Vec<[f64; 2]>)>)>
pub fn breakdown_lines(&self) -> Vec<(String, Vec<(String, Vec<[f64; 2]>)>)>
The parts of each motor’s torque over the scopes’ time window: per motor its name with the unit, and per
part of TORQUE_PARTS and then the torque itself the label and the points (time, torque). Empty for a machine
that does not report the parts.
Sourcepub fn breakdown_table(&self) -> Option<Table>
pub fn breakdown_table(&self) -> Option<Table>
The parts of each motor’s torque over the analysed cycle: one row per part and one for the torque itself, per
motor its peak and its RMS in N m. None until a cycle was analysed, and for a machine that does not report the
parts.
Sourcepub fn budget_table(&self) -> Option<Table>
pub fn budget_table(&self) -> Option<Table>
Where the energy drawn from the supply over the analysed cycle went: the supply, every row of the budget that
is not exactly zero (an effect that is off), and what is not accounted for; in J and in percent of the supply.
None until a cycle was analysed, and for a machine that does not report its losses.
Sourcepub fn budget_flows(&self) -> Option<[Vec<(String, f64)>; 3]>
pub fn budget_flows(&self) -> Option<[Vec<(String, f64)>; 3]>
The energy budget of the analysed cycle as a flow diagram, in three columns of (label, energy in J), every
energy above zero. The first holds the supply and every store that gave energy back over the cycle (a row of the
budget below zero); the second what the electrical side lost or stored (the rows EnergyBudget:: electrical_unaccounted counts, and what that leaves), and last the shaft work, with what the machine’s stores
gave back; the third what the machine lost or stored, and what its own balance leaves. So the first column adds
up to the second, the second’s last to the third, and the second and third less what the first has beyond the
supply are the supply, as the budget’s rows and what it leaves unaccounted are. Rows that are exactly zero (an
effect that is off) are left out, as in budget_table. None where that has nothing.
Sourcepub fn workspace_slice(&self, n: usize) -> Option<Arc<WorkspaceSlice>>
pub fn workspace_slice(&self, n: usize) -> Option<Arc<WorkspaceSlice>>
A horizontal slice through what the machine can reach, at the height inputs.workspace_z (the middle of the
third axis’s range where it is None, and within that range), for the workspace map: per node of a grid the
condition number of the kinematics there (Machine::condition). The grid spans the first two axes’ ranges and
half of their width beyond each end, so that the reach shows where it goes past the travel range. None for a
machine with fewer than three axes or no condition to tell, and for a config it does not build.
Worked out once per config, height and grid: 3721 nodes each frame cost the path tab its frame rate.
Sourcepub fn friction_views(&self) -> Vec<FrictionView>
pub fn friction_views(&self) -> Vec<FrictionView>
Per friction contact of the machine its curve of steady sliding and where it is now (see FrictionView). The
curve runs over the axis’s speed limit both ways, with its points closer together near standstill, where the
Stribeck drop is. Empty for a machine that tells no contacts, or a config it does not build.
Sourcepub fn thermal_view(&self) -> ThermalView
pub fn thermal_view(&self) -> ThermalView
The thermal view (see ThermalView). The windings are rated for motor.rated_temperature_rise_k, the parts
for thermal.<kind>_max_rise_k; a part settles at its thermal resistance times its mean loss over the analysed
cycle (CycleLoad::part_rises), a winding at MotorLoad::winding_rise. The share of the rating is that of the
settled rise, which is what the verdicts judge (the rise now is a climb of many minutes); above 100 % it is
marked.
Sourcepub fn belt_view(&self) -> Option<BeltView>
pub fn belt_view(&self) -> Option<BeltView>
The belt view (see BeltView); None for a machine that tells no belt sections. Stretch in mm.
Sourcepub fn compare_view(&self) -> Option<CompareView>
pub fn compare_view(&self) -> Option<CompareView>
The effect comparison (see CompareView) for the quantity inputs.compare_quantity; None before one was run,
and for a quantity the comparison has no signal of.
Sourcepub fn sweep_table(&self) -> Option<Table>
pub fn sweep_table(&self) -> Option<Table>
One row per figure, one column per motor: the resonance of the load on the belt in each frequency
response (identify::resonance), and its damping ratio. Empty where a response has no dip with both
flanks. None until a sweep was run.
Sourcepub fn sweep_fit_table(&self) -> Option<Table>
pub fn sweep_fit_table(&self) -> Option<Table>
The fit of a measured frequency response, as sim-cli fit --sweep writes it: resonance and damping of
the config’s own response and of the measured one, and the standard error of the frequency.
Sourcepub fn sweep_fit_advice(&self) -> Option<String>
pub fn sweep_fit_advice(&self) -> Option<String>
What the fit of a measured frequency response says to change in the config.
Sourcepub fn sensitivity_table(&self) -> Option<Table>
pub fn sensitivity_table(&self) -> Option<Table>
The parameters the cycle depends on most, strongest first: the low and high value each was run with, and what that did to peak torque, RMS torque and cycle time, in percent.
Sourcepub fn optimised_table(&self) -> Option<Table>
pub fn optimised_table(&self) -> Option<Table>
The optimiser’s result: cycle time and settling before and after, and every setting it would change.
Sourcepub fn optimised_front(&self) -> Option<(Vec<[f64; 2]>, f64)>
pub fn optimised_front(&self) -> Option<(Vec<[f64; 2]>, f64)>
The optimiser’s front of energy against cycle time (Optimised::front): (cycle time, energy per cycle) of each
point, and the result’s cycle time.
Sourcepub fn signal_label(&self, signal: &SignalInfo) -> String
pub fn signal_label(&self, signal: &SignalInfo) -> String
“X axis · Following error [m]”
Sourcepub fn effects(&self) -> Vec<(String, String, bool)>
pub fn effects(&self) -> Vec<(String, String, bool)>
The effect switches: (config path, label key, on).
Sourcepub fn param_groups(&self) -> Vec<ParamGroup>
pub fn param_groups(&self) -> Vec<ParamGroup>
The parameter panel: every numeric config value, grouped by its table.
Sourcepub fn param_matches(&self, path: &str, filter: &str) -> bool
pub fn param_matches(&self, path: &str, filter: &str) -> bool
Whether the parameter path is listed under filter: its label (in the language shown) or its dotted path
holds the filter, in any case. An empty filter lists all.
Sourcepub fn changed_params(&self) -> Vec<(String, String, Option<Value>, Value)>
pub fn changed_params(&self) -> Vec<(String, String, Option<Value>, Value)>
The values of the config that differ from the machine’s default: the dotted path, its label, the default
and the value now, in the config’s order. Values the default does not have (a machine file’s extra keys) are
listed with the default as None.
Sourcepub fn find_modes(&mut self)
pub fn find_modes(&mut self)
The machine’s modes at the pose its setpoint stands at (where it starts, before any sample), each with its shape
and the stiffness it lives in (insight::mode_views), for the mode list. The 3D view goes back to the machine’s
own mode.
Sourcepub fn pick_mode(&mut self, i: Option<usize>)
pub fn pick_mode(&mut self, i: Option<usize>)
Shows mode i of the mode list swinging in the 3D view; None, the machine’s own (Machine::mode_shape).
Sourcepub fn modes_outdated(&self) -> bool
pub fn modes_outdated(&self) -> bool
The mode list was found for a config that has changed since.
Sourcepub fn modes_table(&self) -> Option<Table>
pub fn modes_table(&self) -> Option<Table>
The mode list as a table: per mode its frequency and damping (in %) as the machine reports them, the mode of the
linearised model its shape is of where it is that one’s, where the shape comes from, and the kinds of stiffness
that hold at least 5 % of its strain energy, largest first. None before the modes were asked for.
Sourcepub fn path_quantities(&self) -> Vec<PathQuantity>
pub fn path_quantities(&self) -> Vec<PathQuantity>
What the path that was run can be coloured by: the quantities its run has (PathQuantity::values).
Sourcepub fn path_quantity_label(&self, quantity: PathQuantity) -> String
pub fn path_quantity_label(&self, quantity: PathQuantity) -> String
A quantity’s label: motor k’s utilisation with the motor’s name.
Sourcepub fn path_colours(&self) -> Option<Arc<PathColours>>
pub fn path_colours(&self) -> Option<Arc<PathColours>>
The path that was run, coloured by inputs.path_colour (insight::PathColours): per millisecond of the run the
tool’s place in the scene (Machine::scene_point of the axes’ positions) and the quantity’s value there, and the
sample of its highest value. None without a path, a quantity, or a place in the scene for the tool.
Sourcepub fn path_values_at(&self, i: usize) -> Table
pub fn path_values_at(&self, i: usize) -> Table
Every quantity of path_quantities at sample i of the path that was run, with the time, as a table of label,
value and unit.
Sourcepub fn trace_bands(&mut self)
pub fn trace_bands(&mut self)
Runs the cycle with each bounded value at its bounds in the background and keeps their traces’ envelope
(insight::band_runs); the answer comes with poll.
Sourcepub fn bands_tracing(&self) -> bool
pub fn bands_tracing(&self) -> bool
The bounds runs are being run.
Sourcepub fn bands_outdated(&self) -> bool
pub fn bands_outdated(&self) -> bool
The bounds runs are of a config that has changed since.
Sourcepub fn band_plots(&self) -> Vec<(String, Vec<[f64; 2]>, Vec<[f64; 4]>)>
pub fn band_plots(&self) -> Vec<(String, Vec<[f64; 2]>, Vec<[f64; 4]>)>
The traces of the bounds runs for the plots: per traced signal its title with the unit, the nominal trace
(time, value) with its peaks kept (plot_line), and the envelope in at most BAND_BUCKETS stretches, each from
its first time to the next one’s with the lowest and highest value of the stretch: [t0, t1, low, high].
Sourcepub fn band_points(&self) -> Vec<Vec<[f64; 2]>>
pub fn band_points(&self) -> Vec<Vec<[f64; 2]>>
Per motor the operating points of the bounds runs (speed in the unit chosen, torque), for the cloud on the torque-speed view; empty before the bounds were run.
Sourcepub fn keys_in_use(&self) -> Vec<String>
pub fn keys_in_use(&self) -> Vec<String>
Every translation key the panels and the 3D view can show for the current machine.
Auto Trait Implementations§
impl !Freeze for Model
impl !RefUnwindSafe for Model
impl !UnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
T [ShaderType] for self. When used in [AsBindGroup]
derives, it is safe to assume that all images in self exist.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ConditionalSend for Twhere
T: Send,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Settings for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.