mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
PostProcessing, added some processEvents to see updates in progress dialog
This commit is contained in:
@@ -4543,6 +4543,7 @@ void MainWindow::postProcessing()
|
||||
|
||||
_initProgressDialog->setMaximumSteps(_initProgressDialog->maximumSteps()+(int)clusters.size());
|
||||
_initProgressDialog->appendText(tr("Looking for more loop closures, clustering poses... found %1 clusters.").arg(clusters.size()));
|
||||
QApplication::processEvents();
|
||||
|
||||
int i=0;
|
||||
std::set<int> addedLinks;
|
||||
@@ -4604,6 +4605,7 @@ void MainWindow::postProcessing()
|
||||
_currentLinksMap.insert(std::make_pair(from, Link(from, to, Link::kUserClosure, transform, info.variance, info.variance)));
|
||||
++loopClosuresAdded;
|
||||
_initProgressDialog->appendText(tr("Detected loop closure %1->%2! (%3/%4)").arg(from).arg(to).arg(i+1).arg(clusters.size()));
|
||||
QApplication::processEvents();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4622,6 +4624,8 @@ void MainWindow::postProcessing()
|
||||
{
|
||||
_initProgressDialog->appendText(tr("Optimizing graph with new links (%1 nodes, %2 constraints)...")
|
||||
.arg(odomPoses.size()).arg(_currentLinksMap.size()));
|
||||
QApplication::processEvents();
|
||||
|
||||
int fromId = optimizeFromGraphEnd?odomPoses.rbegin()->first:odomPoses.begin()->first;
|
||||
std::map<int, rtabmap::Transform> posesOut;
|
||||
std::multimap<int, rtabmap::Link> linksOut;
|
||||
@@ -4650,6 +4654,7 @@ void MainWindow::postProcessing()
|
||||
}
|
||||
// TODO: support ICP from laser scans?
|
||||
_initProgressDialog->appendText(tr("Refining links..."));
|
||||
QApplication::processEvents();
|
||||
|
||||
RegistrationIcp regIcp(parameters);
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="label_voxel_3">
|
||||
<property name="text">
|
||||
<string>Cone std dev threshold.</string>
|
||||
<string>Cone standard deviation threshold.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
@@ -168,7 +168,7 @@
|
||||
<item row="8" column="0">
|
||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_coneStdDevThresh">
|
||||
<property name="suffix">
|
||||
<string/>
|
||||
<string> m</string>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>2</number>
|
||||
|
||||
Reference in New Issue
Block a user