function
SLAM.LoopClosure.RGBDKeyframes.ValidCatalog
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | state | Catalog | | |
| output | valid | Boolean | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function ValidCatalog
input Catalog state;
output Boolean valid;
algorithm
valid := ValidHeader(state);
for slot in 1:keyframeCapacity loop
if state.occupied[slot] then
valid := valid and ValidFrame(ReadSlot(state,slot));
end if;
end for;
end ValidCatalog;