mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Added optimizeFromGraphEnd (default true) parameter. It can be used to keep the map referential from the oldest node in the current graph
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1441 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -513,7 +513,6 @@ void MainWindow::handleEvent(UEvent* anEvent)
|
||||
{
|
||||
OdometryEvent * odomEvent = (OdometryEvent*)anEvent;
|
||||
if(_ui->dockWidget_cloudViewer->isVisible() &&
|
||||
_preferencesDialog->isCloudsShown(1) &&
|
||||
_lastOdometryProcessed &&
|
||||
!_processingStatistics)
|
||||
{
|
||||
@@ -1279,6 +1278,11 @@ void MainWindow::updateNodeVisibility(int nodeId, bool visible)
|
||||
}
|
||||
else if(viewerClouds.contains(cloudName))
|
||||
{
|
||||
if(visible)
|
||||
{
|
||||
//make sure the transformation was done
|
||||
_ui->widget_cloudViewer->updateCloudPose(cloudName, _currentPosesMap.find(nodeId)->second);
|
||||
}
|
||||
_ui->widget_cloudViewer->setCloudVisibility(cloudName, visible);
|
||||
}
|
||||
}
|
||||
@@ -1292,6 +1296,11 @@ void MainWindow::updateNodeVisibility(int nodeId, bool visible)
|
||||
}
|
||||
else if(viewerClouds.contains(scanName))
|
||||
{
|
||||
if(visible)
|
||||
{
|
||||
//make sure the transformation was done
|
||||
_ui->widget_cloudViewer->updateCloudPose(scanName, _currentPosesMap.find(nodeId)->second);
|
||||
}
|
||||
_ui->widget_cloudViewer->setCloudVisibility(scanName, visible);
|
||||
}
|
||||
}
|
||||
@@ -1481,8 +1490,6 @@ void MainWindow::processRtabmapEvent3DMap(const rtabmap::RtabmapEvent3DMap & eve
|
||||
_initProgressDialog->appendText(tr("Inserted %1 local transforms.").arg(_localTransformsMap.size()));
|
||||
_initProgressDialog->incrementStep();
|
||||
|
||||
_odometryCorrection.setIdentity();
|
||||
|
||||
_initProgressDialog->appendText("Inserting data in the cache... done.");
|
||||
|
||||
if(event.getPoses().size())
|
||||
|
||||
Reference in New Issue
Block a user