Skip to main content

Module search_views

Module search_views 

Source
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 first SearchInputs::top of them that ran their motor’s torque-speed curves (None where 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, from x and y (low, high) in n nodes 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.
ScatterPoint
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).
SearchInputs
The search’s options beyond those of Inputs (supply, series, gearbox series, axes), as sim-cli search takes 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-kinematics runs it: the task file mapped onto each machine of SearchInputs::machines (the one shown with config, the others with their default config), the search at the supplies of supplies with the series, gearbox series, drives and ranking of the search tab.
default_distance
The distance a map’s move goes when MapInputs::distance is 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) along axis by distance (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 transmission runs it: SearchInputs::sweep_key from sweep_from to sweep_to (half and twice the config’s where 0) in sweep_count values, and with sweep_snap the 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 search runs it with the same options: at the supplies of supplies, with inputs.series and inputs.gearboxes, every axis (inputs.axes) or one motor, the drives and the duty mix of SearchInputs, ranked by its rank_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 to to (Command::MoveTo) and watched until SETTLE_S after 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 axis unit_of.
supplies
The supplies a search runs at: with a maker every one of that maker’s (“all”: every one), else supply alone. Empty where neither names one of SUPPLIES.
vendors
The makers of the supplies, each once, in the order of SUPPLIES.