Expand description
The search workflow in the app beside the ranked table of the search tab: every option sim-cli search takes
(SearchInputs), the figures of each candidate as a heat map of its checks (heatmap), cost against margin with the
front (scatter), the top candidates’ operating points on their torque-speed curves (Found::curves) and why each
failed (failures); the sweep of a gear ratio or pulley radius (sim-cli transmission) and the comparison of
kinematics on one task (sim-cli compare-kinematics); and for the path tab maps of peak torque and following error
over a plane of the workspace, from a grid of short moves (move_map). The window draws them in ui/search_views.rs.
Structs§
- Found
- A search’s result: the candidates ranked (
search::rank_by), and for the firstSearchInputs::topof them that ran their motor’s torque-speed curves (Nonewhere its config does not build again). - Heatmap
- The candidates × checks heat map: every check of any candidate in the order they first come up, and per candidate
in the order of the ranking its utilisation of each (
Figures::checks, above 1 it fails), NaN where it has none. - MapInputs
- The workspace maps of the path tab: the plane (two axes), the axis the short move goes along, how far (in its unit), and the nodes per side of the grid.
- MoveMap
- The workspace maps of the path tab: over the plane of the two axes
axes, fromxandy(low, high) innnodes per side (node (i, j) at x.0 + i (x.1 - x.0) / (n - 1), j outer), per node the peak motor torque (N m, the highest of the motors) and the peak following error (of the axes in the unit of the moved axis) of a short move from there; NaN where the machine cannot start or make it. - Scatter
Point - One candidate in the scatter of cost against margin: its place in the ranking, its cost (installed mass, kg), its
worst margin (1 less the tightest check’s utilisation: below 0 it fails), its energy per cycle (J, NaN without
figures), whether it passes, and whether it is on the front (
search::front). - Search
Inputs - The search’s options beyond those of
Inputs(supply, series, gearbox series, axes), assim-cli searchtakes them, and the inputs of the ratio sweep and of the kinematics comparison. - Views
- What these views keep: the top candidates’ curves of the last search, and the last ratio sweep, kinematics comparison and move map, each with the config it was computed for; and the jobs under way.
Enums§
- ViewJob
- The computations of these views beside the analysis panel’s, each in a thread of its own.
Functions§
- compare
- The kinematics comparison of the search tab, as
sim-cli compare-kinematicsruns it: the task file mapped onto each machine ofSearchInputs::machines(the one shown withconfig, the others with their default config), the search at the supplies ofsupplieswith the series, gearbox series, drives and ranking of the search tab. - default_
distance - The distance a map’s move goes when
MapInputs::distanceis 0: a tenth of the moved axis’s travel. - failure_
line - A failing check as a line: the check, the motor it concerns, value, limit and utilisation.
- failures
- Why a candidate failed: its checks that fail, with value, limit and utilisation; empty for one that passes or did not run.
- heatmap
- kinematics_
table - The kinematics comparison side by side: a column per machine, a row per figure of its best candidate.
- move_
map - The move map of
MapInputs: from each node of the grid a short move (short_move) alongaxisbydistance(a tenth of its travel where 0), backwards where forwards would leave the travel. The moves share the processors. - ratio_
sweep - The ratio sweep of the search tab, as
sim-cli transmissionruns it:SearchInputs::sweep_keyfromsweep_fromtosweep_to(half and twice the config’s where 0) insweep_countvalues, and withsweep_snapthe gearboxes of that series that fit the config’s motor around the best ratio. - run_
search - The search of the search tab, as
sim-cli searchruns it with the same options: at the supplies ofsupplies, withinputs.seriesandinputs.gearboxes, every axis (inputs.axes) or one motor, the drives and the duty mix ofSearchInputs, ranked by itsrank_by. A search that finds nothing to try says why. - scatter
- The candidates that ran, finite in cost and margin (a tripped drive is infinitely far beyond), as
ScatterPoints. - short_
move - One short move: the machine at rest at
from(start.pose), moved point to point toto(Command::MoveTo) and watched untilSETTLE_Safter it has arrived. The peak motor torque, the highest of the motors (N m), and the peak following error of the axes in the unit of axisunit_of. - supplies
- The supplies a search runs at: with a maker every one of that maker’s (“all”: every one), else
supplyalone. Empty where neither names one ofSUPPLIES. - vendors
- The makers of the supplies, each once, in the order of
SUPPLIES.