mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Added a quality odometry threshold, turning the background yellow when the mapping area has too low features
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1334 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -27,6 +27,7 @@ void showUsage()
|
||||
" -min # Minimum inliers to accept the transform (default 20)\n"
|
||||
" -depth #.# Maximum features depth (default 5.0 m)\n"
|
||||
" -i # RANSAC/ICP iterations (default 100)\n"
|
||||
" -r #.# Words ratio (default 0.5)\n"
|
||||
" -lu # Linear update (default 0.0 m)\n"
|
||||
" -au # Angular update (default 0.0 radian)\n"
|
||||
" -reset # Reset countdown (default 0 = disabled)\n"
|
||||
@@ -63,6 +64,7 @@ int main (int argc, char * argv[])
|
||||
float distance = 0.005;
|
||||
int maxWords = 0;
|
||||
int minInliers = 20;
|
||||
float wordsRatio = 0.5;
|
||||
float maxDepth = 5.0f;
|
||||
int iterations = 100;
|
||||
float linearUpdate = 0.0f;
|
||||
@@ -252,6 +254,23 @@ int main (int argc, char * argv[])
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if(strcmp(argv[i], "-r") == 0)
|
||||
{
|
||||
++i;
|
||||
if(i < argc)
|
||||
{
|
||||
wordsRatio = std::atof(argv[i]);
|
||||
if(wordsRatio < 0.0f || wordsRatio > 1.0f)
|
||||
{
|
||||
showUsage();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
showUsage();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if(strcmp(argv[i], "-lu") == 0)
|
||||
{
|
||||
++i;
|
||||
@@ -446,6 +465,7 @@ int main (int argc, char * argv[])
|
||||
UINFO("Max features = %d", maxWords);
|
||||
UINFO("Min inliers = %d", minInliers);
|
||||
UINFO("RANSAC/ICP iterations = %d", iterations);
|
||||
UINFO("Words ratio = %f", wordsRatio);
|
||||
UINFO("Max depth = %f", maxDepth);
|
||||
UINFO("Linear update = %f", linearUpdate);
|
||||
UINFO("Angular update = %f", angularUpdate);
|
||||
@@ -470,6 +490,7 @@ int main (int argc, char * argv[])
|
||||
maxWords,
|
||||
minInliers,
|
||||
iterations,
|
||||
wordsRatio,
|
||||
maxDepth,
|
||||
linearUpdate,
|
||||
angularUpdate,
|
||||
@@ -482,6 +503,7 @@ int main (int argc, char * argv[])
|
||||
maxWords,
|
||||
minInliers,
|
||||
iterations,
|
||||
wordsRatio,
|
||||
maxDepth,
|
||||
linearUpdate,
|
||||
angularUpdate,
|
||||
|
||||
Reference in New Issue
Block a user