function
SLAM.LoopClosure.RGBDVisualVocabulary.Empty
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | generation | Integer | = 1 | |
| input | sourceRevision | Integer | = 1 | |
| input | version | Integer | = 1 | |
| output | state | State | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function Empty
input Integer generation = 1;
input Integer sourceRevision = 1;
input Integer version = 1;
output State state;
algorithm
// Invalid supplied ownership remains invalid: Valid/Learn refuse it.
state.generation := generation; state.sourceRevision := sourceRevision;
state.version := version; state.words := zeros(vocabularyCapacity,descriptorSize);
state.enabled := zeros(vocabularyCapacity); state.count := 0; state.ready := false;
end Empty;