mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 20:09:51 +08:00
GraphView: fixed nodes not added when updating the graph when "Hide Nodes" option is enabled.
This commit is contained in:
@@ -568,7 +568,7 @@ void GraphViewer::updateGraph(const std::map<int, Transform> & poses,
|
|||||||
item->setZValue(iter->first<0?21:20);
|
item->setZValue(iter->first<0?21:20);
|
||||||
item->setColor(color);
|
item->setColor(color);
|
||||||
item->setParentItem(_graphRoot);
|
item->setParentItem(_graphRoot);
|
||||||
item->setVisible(_nodeVisible);
|
item->show();
|
||||||
_nodeItems.insert(iter->first, item);
|
_nodeItems.insert(iter->first, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -742,6 +742,7 @@ void GraphViewer::updateGraph(const std::map<int, Transform> & poses,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
iter.value()->setVisible(_nodeVisible);
|
||||||
++iter;
|
++iter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1185,7 +1186,7 @@ void GraphViewer::setNodeInfo(int id, const QString & info)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UWARN("Current goal %d not found in the graph", id);
|
UWARN("Node %d not found in the graph", id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user