mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 18:17:47 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user