mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Added notification message box when a global path is computed. Refactoring occupancy grid.
This commit is contained in:
@@ -151,6 +151,7 @@ DatabaseViewer::DatabaseViewer(QWidget * parent) :
|
||||
connect(ui_->actionRefine_all_loop_closure_links, SIGNAL(triggered()), this, SLOT(refineAllLoopClosureLinks()));
|
||||
connect(ui_->actionVisual_Refine_all_neighbor_links, SIGNAL(triggered()), this, SLOT(refineVisuallyAllNeighborLinks()));
|
||||
connect(ui_->actionVisual_Refine_all_loop_closure_links, SIGNAL(triggered()), this, SLOT(refineVisuallyAllLoopClosureLinks()));
|
||||
connect(ui_->actionReset_all_changes, SIGNAL(triggered()), this, SLOT(resetAllChanges()));
|
||||
|
||||
//ICP buttons
|
||||
connect(ui_->pushButton_refine, SIGNAL(clicked()), this, SLOT(refineConstraint()));
|
||||
@@ -627,6 +628,11 @@ void DatabaseViewer::closeEvent(QCloseEvent* event)
|
||||
void DatabaseViewer::showEvent(QShowEvent* anEvent)
|
||||
{
|
||||
this->setWindowModified(false);
|
||||
|
||||
if(ui_->graphViewer->isVisible() && graphes_.size() && localMaps_.size()==0)
|
||||
{
|
||||
sliderIterationsValueChanged((int)graphes_.size()-1);
|
||||
}
|
||||
}
|
||||
|
||||
void DatabaseViewer::moveEvent(QMoveEvent* anEvent)
|
||||
@@ -1367,6 +1373,15 @@ void DatabaseViewer::refineVisuallyAllLoopClosureLinks()
|
||||
}
|
||||
}
|
||||
|
||||
void DatabaseViewer::resetAllChanges()
|
||||
{
|
||||
linksAdded_.clear();
|
||||
linksRefined_.clear();
|
||||
linksRemoved_.clear();
|
||||
updateLoopClosuresSlider();
|
||||
this->updateGraphView();
|
||||
}
|
||||
|
||||
void DatabaseViewer::sliderAValueChanged(int value)
|
||||
{
|
||||
this->update(value,
|
||||
|
||||
Reference in New Issue
Block a user