Replaced all optimizeIncremental() by optimizeMultiSession() to fix GTSAM errors when merging multiple maps together. DBReader: always publish saved stamp. DBViewer: added actions to set covariance of all neighbor or loop closure links.

This commit is contained in:
matlabbe
2018-10-15 17:07:18 -04:00
parent b2c012d8bc
commit f1546c1fca
15 changed files with 285 additions and 82 deletions
+19
View File
@@ -1037,6 +1037,25 @@ std::multimap<int, int>::const_iterator findLink(
return links.end();
}
std::list<Link> findLinks(
const std::multimap<int, Link> & links,
int from)
{
std::list<Link> output;
for(std::multimap<int, Link>::const_iterator iter=links.begin(); iter != links.end(); ++iter)
{
if(iter->second.from() == from)
{
output.push_back(iter->second);
}
else if(iter->second.to() == from)
{
output.push_back(iter->second.inverse());
}
}
return output;
}
std::multimap<int, Link> filterDuplicateLinks(
const std::multimap<int, Link> & links)
{