Tubes & Trajectories
Main author: Simon Rohou
Codac provides trajectories to represent time-dependent values and tubes to represent time-dependent sets.
where \(\mathcal{P}(\mathbb{R}^n)\) denotes the power set of \(\mathbb{R}^n\). In Codac, these sets are represented by a configurable domain type, such as a box or a polygon.
Trajectories
Two representations are available. SampledTraj stores time/value samples and interpolates linearly between them, while AnalyticTraj evaluates expressions of time through an AnalyticFunction. Both support scalar, vector and matrix trajectories.
Trajectories are intended to represent approximations of solutions or measured signals. Guaranteed computations involving time-dependent quantities rely on tubes to account for uncertainties.
Tubes
A SlicedTube represents a tube over a temporal partition TDomain. Each time element is a TSlice, with an associated Slice for each tube. Several tubes may share one temporal partition, so refining it also updates the structure of the other tubes.
The principal codomains are Interval, IntervalVector and IntervalMatrix, which represent scalar, vector and matrix sliced tubes. For these sliced tubes, contractors can reduce the enclosures using observations and dynamical constraints without discarding feasible trajectories, making them particularly useful for guaranteed state estimation.
A sliced tube \([x](\cdot)\), represented by interval enclosures over a temporal partition.
C++ also supports compatible custom codomains, such as ConvexPolygon or Ellipsoid.
See also Binary serialization and 2D drawing functions.