DbViewer: fit in view the graph when changing iterations. Limited to 900MB creation of the grid map (in case graph is very erroneous).

This commit is contained in:
matlabbe
2017-12-01 11:56:27 -05:00
parent 4452e637ad
commit dafaac412f
4 changed files with 7 additions and 6 deletions

View File

@@ -4563,6 +4563,7 @@ void DatabaseViewer::sliderIterationsValueChanged(int value)
}
}
}
ui_->graphViewer->fitInView(ui_->graphViewer->scene()->itemsBoundingRect(), Qt::KeepAspectRatio);
ui_->graphViewer->update();
ui_->label_iterations->setNum(value);

View File

@@ -95,7 +95,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="currentIndex">
<number>20</number>
<number>14</number>
</property>
<widget class="QWidget" name="page_22">
<layout class="QVBoxLayout" name="verticalLayout_29" stretch="0,1">
@@ -8797,7 +8797,7 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag
<item row="2" column="0">
<widget class="QDoubleSpinBox" name="graphOptimization_maxError">
<property name="suffix">
<string> m</string>
<string/>
</property>
<property name="decimals">
<number>2</number>
@@ -8819,7 +8819,7 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag
<item row="2" column="1">
<widget class="QLabel" name="label_259">
<property name="text">
<string>Reject loop closures if optimization error is greater than this value (0=disabled). This will help to detect when a wrong loop closure is added to the graph. It should not be used at the same time than Vertigo above.</string>
<string>Reject loop closures if optimization error ratio is greater than this value (0=disabled). Ratio is computed as absolute error over standard deviation of each link. This will help to detect when a wrong loop closure is added to the graph. It should not be used at the same time than Vertigo above.</string>
</property>
<property name="wordWrap">
<bool>true</bool>