Expand description
The catalogue search as a workflow: which drive works best with which path and kinematics. catalog::search tries
the parts; this module gives each candidate the figures of a wide table (Figures), judges it over a duty mix
(mix_verdicts), ranks by one criterion or a weighted mix of them (rank_by), marks the non-dominated ones
(front), sweeps a gear ratio or pulley radius for the optimum (transmission_sweep), ranks the best again in the
error bands (robust_ranking), and runs one tool-space task on several kinematics (compare_kinematics).
Structs§
- Figures
- One candidate’s figures beside its parts, the columns of the search’s table. A figure the run does not give is NaN.
- Kinematics
Row - One machine of a kinematics comparison: its id, why the task cannot be mapped onto it (
task_config), else the search’s best candidate (the first of the ranking, passing or not), how many passed and how many were tried, and the task’s target cycle time. - MixHeat
- What the heat of a duty mix is worked out with, per motor: its drive model (the winding’s nodes,
winding_stretch) and the drive’s thermal image asdrive::Overloadhas it, [tau, chip share, chip tau] (ratings.drive_overload_time_constant_s,drive_chip_share,drive_chip_time_constant_s; no chips where the config lacks the share),Nonewhere the config has no time constant for it. - Refusal
- Why a task cannot be mapped onto a machine: a key (“task-axis-missing”: the task moves along an axis the machine has
not; “task-out-of-range”: a pose beyond an axis’s range; “task-origin”: an origin of the wrong length;
“task-payload”: a payload on a machine whose config has none; “task-set”: an assignment the config refuses; or the
machine’s own reason from
Machine::unreachable) and what it concerns. - Robust
Row - A candidate judged at the worst corner of its config’s bounds (
robust_ranking): its place in the ranking given, whether it passes there, its tightest check there, and the cycles the search for the corners took;refusedwhere its config could not be judged so. - Stretch
- One stretch of a sequence that repeats, on a linear model of two states: held for
len, x’ = a x + b. - Sweep
Row - One value of a sweep of a gear ratio or pulley radius (
transmission_sweep): the value; the torque the motors need per unit of acceleration of every axis in turn, summed (catalog::torque_per_acceleration, the rigid machine at mid travel); the inertia ratio (Figures::inertia_ratio); and the cycle run with it, its tightest check and whether it passes;refusedthe reason where it did not run. - Task
- A task in tool space for comparing kinematics (
compare_kinematics), read from a task file (Task::parse): pick and place positions and via points of the way between them, x y z in m relative to each machine’s origin (origin, by default the middle of its axis ranges), z up; the lift above pick and place; the dwell of the gripper; the payload; the target cycle time (or rate); assignments made to every machine’s config (set, e.g.cycle.timing = ...); and per machine id an origin of its own, in its tool coordinates (one value per axis). - Transmission
Sweep - A sweep of one value of the config (
gearbox.ratioorgeometry.pulley_radius_m): the rows of the values swept and of the two optima, in the order of their value; the classic optimum, the value at which the motors need the least torque per unit of acceleration (for a pure inertiaoptimum_ratio); the best value for the cycle, the row that passes with the lowest tightest check (else the lowest tightest check); and the catalogue gearboxes around the best ratio, each run on the cycle (with a motor and a series given).
Enums§
- Criterion
- What a search can be ranked by (
rank_by), lower better: the cost (Candidate::cost), the margin (the tightest check’s utilisation,Candidate::tightest), the energy per cycle, the following error, the thermal utilisation, the inertia ratio (Figures), and the drive’s size, its rated output current (catalog::drives_for; the catalogue has no weight of a drive, so the cost leaves it out).
Constants§
- CRITERIA
- The criteria by the names
--rank-bytakes. - FRONT
- The criteria the search’s front is drawn over: cost, the drive’s size, margin, energy and following error.
Functions§
- compare_
kinematics - Runs a task on each machine (with its config): maps it (
task_config), runs the catalogue search on it at its supplies (suppliesgives them per config, e.g. the config’s own), ranked byby(rank_by), and reports per machine the best combination. - figures
- The figures of a candidate that ran:
cfgits config (the first duty’s),motorthe one motor searched (“” all),runs(weight, cycle, verdicts) per duty,estimatedfromcatalog::estimated_data. Over a mix the verdicts aremix_verdicts, and the thermal utilisation goes into each motor’s one node as the S1 check’s does. - front
- Which candidates are on the search’s front: passing, and no other passing one is as good in every criterion of
FRONTand better in one (analysis::non_dominated_indices). One of two alike is on it. - mix_
mean - The time-weighted mean of a figure over a duty mix, (weight, figure, time) per duty: sum w x t / sum w t.
- mix_rms
- The time-weighted RMS of a figure over a duty mix: (weight, the figure’s RMS over the cycle, the cycle’s time) per duty, sqrt(sum w RMS^2 t / sum w t). Each duty runs its cycle w times as often as one of weight 1. NaN for no time.
- mix_
verdicts - The verdicts of a duty mix on
cfg(the first duty’s; the motors and drives are the same in all), (weight, cycle, verdicts) per duty:mix_verdicts_witheach motor’sMixHeat. - mix_
verdicts_ with - The verdicts of a duty mix, (weight, cycle, verdicts) per duty, each motor’s heat with
heats(in the order of the cycles’ motors): per check and motor the worst duty’s (failing before passing, then the highest utilisation), but the heat over the mix, as the duties take turns, each for its weight times its cycle time and in the order given, over and over (the periodic state,periodic_peak): “motor-thermal” the highest winding rise, the winding’s model driven by each duty’s (winding_stretch, with its iron loss); “drive-current” the root of the highest of the drive’s thermal image driven by each duty’s mean square current, where the config has its time constant (else the time-weighted RMS,mix_rms); “motor-s1” the highest S1 utilisation, each duty’s RMS torque over its S1 limit squared into the motor’s one node (motor.thermal_time_constant_s), shown as that share of the time-weighted mean of the duties’ limits. Duties much shorter than the time constants give the heat of the mix’s mean, much longer ones the worst duty’s own. The values are the duties’ verdicts’, so worst-corner verdicts mix the same way (robust_ranking). - optimum_
ratio - The gear ratio at which a motor of rotor inertia
rotoraccelerates a pure inertiaload(at the gearbox output) with the least torque: the torque J_m i a + J_L a / i is least at i = sqrt(J_L / J_m), the classic optimum. - parse_
ranking - A ranking as
--rank-bynames it: one criterion ofCRITERIA(“energy”), or a weighted mix (“cost=1,energy=0.5”; a name alone weighs 1).Nonefor a name it does not know or a weight that is no positive number. - periodic_
peak - The peak of
out. x over the periodic state of a linear model of two states driven throughpartsin order, over and over (each aStretch). Over a stretch x = x* + e^{a t} (x0 - x*), x* = -a^-1 b, so a period maps x0 to M x0 + v and the periodic state is (I - M)^-1 v. Within a stretch out . x = y* + c+ e^{(m+d) t} + c- e^{(m-d) t} (modes), which has at most one turning point, where e^{2 d t} = -c- (m-d) / (c+ (m+d)); the peak is at a stretch’s end or there. NaN for no stretch. - rank_by
- Ranks a search (
catalog::rank: passing first, the others nearest to passing first) and orders the passing ones byby: the sum of each criterion’s weight times its figure over the best (lowest) figure of the passing ones, so that criteria of different units weigh as their weights say (a figure at or below 0 is taken over 1, as it is). For one criterion its figure; ties keep the cost order. - robust_
ranking - The first
toppassing candidates of a ranked search oncfgjudged again at the worst corner of the bounds of their config (analysis::verdict_worst; the bounds follow a part put in, seecatalog::set): the rows in the robust order, the ones that pass there first, each group in the order given; and whether that order differs from the one given. With a duty mix (duties, each duty’s config and weight; empty:cfgalone) every duty is judged at its own worst corner and those verdicts are mixed as the search mixes the duties’ own (mix_verdicts), with each duty’s cycle as the search ran it; the runs add up. - task_
config - The config of a machine with a task’s cycle in it: the start above the pick, then down to the pick (the gripper
closes:
payloadtrue, the dwell), up, across through the via points to above the place, down (it opens), up, and back across. Each task position goes to the machine’s axis of id “x”, “y” or “z” in m, from the origin; the other axes stay at the origin. Refused (Refusal) where a pose moves along an axis the machine has not, lies beyond an axis’s range, or is one the machine cannot go to (Machine::unreachable); and the payload set where the config hasmass.payload_kg. The assignments ofsetcome last. - transmission_
sweep - Sweeps
path(gearbox.ratioorgeometry.pulley_radius_m) of a config overcountvalues spaced logarithmically fromfromtoto, each with the velocity gain retuned for it (catalog::with_value) and run on the cycle; finds the classic optimum by a golden-section search of the torque the motors need per unit acceleration over the same range (unimodal for inertia: J_m i / r + J_L r / i), and runs it too. Withsnap= (series, motor article, supply) andpaththe gear ratio: the catalogue gearboxes of that series that fit the motor around the best ratio (catalog::fitting_gearboxes), each run as a row ofsnapped. The runs share the processors. - winding_
stretch - The winding’s model (
Drive::warm) held forlenat a duty that settles it atrisewith the mean iron lossiron(W, effects.iron_loss): in rises it would settle at alone, q the copper heating at no rise and h the iron’s, the copper’s resistance rising by c per kelvin: one node tau T’ = q (1 + c T) + h - T, or with effects.motor_thermal_nodes the winding tau_w T_w’ = s q (1 + c T_w) - (T_w - T_h) and the housing tau_h T_h’ = (T_w - T_h) / s - T_h / (1 - s) + h, tau_h = tau - tau_w / s. Both settle at T_w = (q + h_w) / (1 - c q) (DriveParams::settled_rise; h_w = h, or (1 - s) h with two nodes), so q = (rise - h_w) / (1 + c rise).