mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
report: ignoring landmarks after optimization to avoid errors when exporting poses
This commit is contained in:
@@ -733,6 +733,13 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
if(poses.size())
|
if(poses.size())
|
||||||
{
|
{
|
||||||
|
//remove landmarks
|
||||||
|
std::map<int, Transform>::iterator iter=poses.begin();
|
||||||
|
while(iter!=poses.end() && iter->first < 0)
|
||||||
|
{
|
||||||
|
poses.erase(iter++);
|
||||||
|
}
|
||||||
|
|
||||||
std::map<int, Transform> groundTruth;
|
std::map<int, Transform> groundTruth;
|
||||||
for(std::map<int, Transform>::const_iterator iter=poses.begin(); iter!=poses.end(); ++iter)
|
for(std::map<int, Transform>::const_iterator iter=poses.begin(); iter!=poses.end(); ++iter)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user