function
SLAM.Localization.RGBDLocalizationCatalog.ImageFresh
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | previous | State | | |
| input | imageEpoch | Integer | | |
| input | imageTime | Real | | |
| output | fresh | Boolean | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function ImageFresh
input State previous; input Integer imageEpoch; input Real imageTime;
output Boolean fresh;
algorithm
fresh := imageEpoch >= 0 and imageEpoch <= identifierLimit
and imageEpoch > previous.lastProcessedImageEpoch
and imageEpoch > previous.catalog.lastEpoch and imageEpoch > previous.map.imageEpoch
and imageTime >= 0.0 and imageTime <= 1e9
and (previous.lastProcessedImageEpoch == -1 or imageTime > previous.lastProcessedImageTime);
end ImageFresh;