temporal-control
Simple temporal networks with uncertainty: dynamic controllability checking, dispatchable networks and a no_std, no-alloc onboard dispatcher
cargo add temporal-control Who it is for
- Flight software and robotics engineers who schedule activities with uncertain durations on a spacecraft, rover or robot and need the timing checked before uplink and executed onboard without a heap. The design targets adoption by an existing executive such as F Prime or cFS.
- Planners that emit temporal plans and need to know whether the plan stays executable under duration uncertainty, with an explanation when it does not.
- Researchers comparing dynamic controllability algorithms: Morris 2014, RUL⁻, RUL2021, the labelled closure and a per-label backpropagation run on the same networks and are cross-checked against each other and a brute-force oracle.
- For energy, memory, thermal or communication budgets over the same timeline, resource-timeline is the companion crate; for durations with probabilities rather than bounds, stochastic-search is the better fit.
Algorithms 11
-
Checks STN consistency with Bellman-Ford and explains inconsistency by a negative cycle.
-
Builds a dispatchable STN by filtering dominated edges of the minimal network.
-
Computes the minimal network of an STN with Floyd-Warshall.
- Incremental STN consistency feature
allocKeeps the closed all-pairs distance matrix of an STN up to date as constraints arrive, at O(n^2) per constraint, rejecting constraints that would make it inconsistent.
-
Reference dynamic controllability check: all-pairs closure of the labelled distance graph under the Morris-Muscettola rules, yielding an extended dispatchable network.
-
Reduces Morris's extended dispatchable STNU with stand-in edges, STN dispatchability filtering and removal of dominated waits, without the paper's diamond stand-ins.
- Morris 2014 backpropagation Morris 2014 · DCbackprop · O(n^3) dynamic controllability check feature
allocDefault STNU dynamic controllability checker: O(n^3) backpropagation from negative nodes that explains negative verdicts; its dispatchable variant builds an extended dispatchable STNU.
check_controllabilitycheck_controllability_withDcAlgorithmdispatchable_withDispatchAlgorithm -
Computes the minimal constraints of the constrained pairs of an STN only, over a chordal triangulation of its graph.
- Per-label backpropagation feature
allocMorris-style backpropagation without the normal form, one propagation per kind of negative incoming edge, kept as an independent cross-check.
- RUL2021 feature
allocRUL⁻ variant that processes each upper-case edge once, recursively, inserting only length-preserving edges.
-
Dynamic controllability check by backpropagation from contingent points with a potential function, in at most 2k rounds.