mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
DbViewer: remove constraint clouds when 3D words are not available and referred checkbox checked
This commit is contained in:
@@ -2112,6 +2112,7 @@ void DatabaseViewer::updateConstraintView(
|
||||
else
|
||||
{
|
||||
UWARN("Empty 3D words for node %d", link.from());
|
||||
ui_->constraintsViewer->removeCloud("cloud0");
|
||||
}
|
||||
if(cloudTo->size())
|
||||
{
|
||||
@@ -2120,11 +2121,14 @@ void DatabaseViewer::updateConstraintView(
|
||||
else
|
||||
{
|
||||
UWARN("Empty 3D words for node %d", link.to());
|
||||
ui_->constraintsViewer->removeCloud("cloud1");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
UERROR("Not found signature %d or %d in RAM", link.from(), link.to());
|
||||
ui_->constraintsViewer->removeCloud("cloud0");
|
||||
ui_->constraintsViewer->removeCloud("cloud1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user