mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
DBViewer: enabled Reject button on landmark links
This commit is contained in:
@@ -6019,6 +6019,7 @@ void DatabaseViewer::updateConstraintButtons()
|
||||
ui_->pushButton_reject->setEnabled(false);
|
||||
ui_->toolButton_constraint->setEnabled(false);
|
||||
|
||||
if(ui_->label_type->text().toInt() == Link::kLandmark)
|
||||
{
|
||||
ui_->pushButton_reject->setEnabled(true);
|
||||
return;
|
||||
@@ -7868,6 +7869,14 @@ void DatabaseViewer::rejectConstraint()
|
||||
|
||||
void DatabaseViewer::rejectConstraint()
|
||||
{
|
||||
int from = ids_.at(ui_->horizontalSlider_A->value());
|
||||
int to = ids_.at(ui_->horizontalSlider_B->value());
|
||||
if(ui_->label_type->text().toInt() == Link::kLandmark)
|
||||
{
|
||||
int position = ui_->horizontalSlider_loops->value();
|
||||
const rtabmap::Link & link = loopLinks_.at(position);
|
||||
from = link.from();
|
||||
to = link.to();
|
||||
}
|
||||
|
||||
if(from < to)
|
||||
|
||||
@@ -2421,7 +2421,7 @@ bool ExportCloudsDialog::getExportedClouds(
|
||||
}
|
||||
else
|
||||
{
|
||||
_progressDialog->appendText(tr("No polygons created for cloud %d!").arg(iter->first), Qt::darkYellow);
|
||||
_progressDialog->appendText(tr("No polygons created for cloud %1!").arg(iter->first), Qt::darkYellow);
|
||||
_progressDialog->setAutoClose(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user