function
SLAM.LoopClosure.RGBDKeyframes.Reset
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | previous | Catalog | | |
| input | generation | Integer | | |
| input | vocabularyVersion | Integer | = 1 | |
| output | next | Catalog | | |
| output | accepted | Boolean | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function Reset
input Catalog previous;
input Integer generation;
input Integer vocabularyVersion = 1;
output Catalog next;
output Boolean accepted;
algorithm
next := previous;
accepted := generation >= 1 and generation > previous.generation and generation <= identifierLimit
and vocabularyVersion >= 1 and vocabularyVersion <= identifierLimit;
if accepted then
next := Empty(generation,vocabularyVersion);
end if;
end Reset;