mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
DBViewer: fixed some missing links/poses. GraphViewer: fixed global path color context menu action, now small links are ignored
This commit is contained in:
@@ -1089,7 +1089,7 @@ void DatabaseViewer::updateIds()
|
||||
previousPose=p;
|
||||
|
||||
//links
|
||||
bool linksInserted = false;
|
||||
bool addPose = false;
|
||||
for(std::map<int, Link>::iterator jter=links.find(ids_[i]); jter!=links.end() && jter->first == ids_[i]; ++jter)
|
||||
{
|
||||
std::map<int, Link>::iterator invertedLinkIter = graph::findLink(links, jter->second.to(), jter->second.from(), false);
|
||||
@@ -1110,11 +1110,14 @@ void DatabaseViewer::updateIds()
|
||||
{
|
||||
links_.insert(std::make_pair(ids_[i], jter->second));
|
||||
}
|
||||
|
||||
linksInserted = true;
|
||||
addPose = true;
|
||||
}
|
||||
else if(graph::findLink(links_, jter->second.from(), jter->second.to()) != links_.end())
|
||||
{
|
||||
addPose = true;
|
||||
}
|
||||
}
|
||||
if(linksInserted)
|
||||
if(addPose)
|
||||
{
|
||||
poses_.insert(std::make_pair(ids_[i], p));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user