Reduce the number of Capture and Feature classes
Captures
Since captured data does not have a standard form, CaptureBase
does not have any data holder.
However, a vector is the simplest form of a real data in Captures.
Instead of having e.g. CaptureVelocity
, CapturePose
, and the like, we could group all these captures in a single CaptureVector
.
At the same time, we have CaptureVoid
, used mainly in dummy demos. This is doing nothing and is absolutely equivalent to CaptureBase
-- just its constructor is simpler. Two options:
- leave it as is, and avoid using
XxxBase
nodes in real programs -- that is, base classes are never used directly. - we can simply overload the
CaptureBase
constructor with a simpler version, and useCaptureBase
directly.
Features
A similar thing happens with Features. But in this case, FeatureBase
already has a Vector for storing the measurement. The proposal here is to eliminate all Features that do not add any extra functionality to FeatureBase
.
Edited by Joan Solà Ortega