mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
gui: fixed odom local map hiding on rtabmap update
This commit is contained in:
@@ -2388,18 +2388,13 @@ void MainWindow::updateMapCloud(
|
||||
if(splitted.size() == 2)
|
||||
{
|
||||
id = std::atoi(splitted.back().c_str());
|
||||
if(splitted.front().at(splitted.front().size()-1) == '-')
|
||||
if(poses.find(id) == poses.end())
|
||||
{
|
||||
id*=-1;
|
||||
}
|
||||
}
|
||||
|
||||
if(poses.find(id) == poses.end())
|
||||
{
|
||||
if(_cloudViewer->getCloudVisibility(iter.key()))
|
||||
{
|
||||
UDEBUG("Hide %s", iter.key().c_str());
|
||||
_cloudViewer->setCloudVisibility(iter.key(), false);
|
||||
if(_cloudViewer->getCloudVisibility(iter.key()))
|
||||
{
|
||||
UDEBUG("Hide %s", iter.key().c_str());
|
||||
_cloudViewer->setCloudVisibility(iter.key(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user