mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
DbViewer: disabling all buttons in Constraints View when visualizing a landmark link
This commit is contained in:
@@ -5479,6 +5479,11 @@ void DatabaseViewer::updateConstraintButtons()
|
|||||||
ui_->pushButton_add->setEnabled(false);
|
ui_->pushButton_add->setEnabled(false);
|
||||||
ui_->pushButton_reject->setEnabled(false);
|
ui_->pushButton_reject->setEnabled(false);
|
||||||
|
|
||||||
|
if(ui_->label_type->text().toInt() == Link::kLandmark)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int from = ids_.at(ui_->horizontalSlider_A->value());
|
int from = ids_.at(ui_->horizontalSlider_A->value());
|
||||||
int to = ids_.at(ui_->horizontalSlider_B->value());
|
int to = ids_.at(ui_->horizontalSlider_B->value());
|
||||||
if(from!=to && from && to && odomPoses_.find(from) != odomPoses_.end() && odomPoses_.find(to) != odomPoses_.end())
|
if(from!=to && from && to && odomPoses_.find(from) != odomPoses_.end() && odomPoses_.find(to) != odomPoses_.end())
|
||||||
|
|||||||
Reference in New Issue
Block a user