function
SLAM.LoopClosure.RGBDVisualVocabulary.Bootstrap
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 | descriptor | Real | [featureCapacity,descriptorSize] | |
| input | descriptorEnabled | Real | [featureCapacity] | |
| input | descriptorCount | Real | | |
| input | generation | Integer | | |
| input | sourceRevision | Integer | | |
| input | version | Integer | | |
| input | requested | Boolean | = true | |
| input | minimumMeasuredDescriptors | Integer | = 8 | |
| input | minimumDistanceSquared | Real | = 0.04 | |
| output | next | State | | |
| output | accepted | Boolean | | |
| output | reason | Integer | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function Bootstrap
input State previous;
input Real descriptor[featureCapacity,descriptorSize];
input Real descriptorEnabled[featureCapacity]; input Real descriptorCount;
input Integer generation; input Integer sourceRevision; input Integer version;
input Boolean requested = true;
input Integer minimumMeasuredDescriptors = 8; input Real minimumDistanceSquared = 0.04;
output State next; output Boolean accepted; output Integer reason;
algorithm
(next,accepted,reason) := Learn(previous,descriptor,descriptorEnabled,descriptorCount,
generation,sourceRevision,version,requested,minimumMeasuredDescriptors,minimumDistanceSquared);
end Bootstrap;