mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-09 21:10:19 +08:00
Updated version to 0.8.0
Libraries are installed in lib directly with symbolic links, not in lib/rtabmap-0.8. Removed the need of RPATH in cmake. Saving variance of each link in database (new field Link.variance). The variance is used to generate the constraint information matrices for TORO optimization. ICP: computing variance instead of fitness. ICP3: added correspondences ratio parameter Added OdometryInfo class Refactoring: renamed depth2d stuff to laserScan. rtabmap::Memory and rtabmap::Signature classes (no more distinct neighbor, loop closure or child loop closure links, only links with different types)
This commit is contained in:
@@ -46,7 +46,8 @@ void showUsage()
|
||||
" -debug Set debug level for the logger.\n"
|
||||
" -rate #.# Input rate Hz (default 0=inf)\n"
|
||||
" -openni Use openni camera instead of the usb camera.\n"
|
||||
" -openni2 Use openni2 camera instead of the usb camera.\n");
|
||||
" -openni2 Use openni2 camera instead of the usb camera.\n"
|
||||
" -freenect Use freenect camera instead of the usb camera.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -76,6 +77,7 @@ int main (int argc, char * argv[])
|
||||
bool show = true;
|
||||
bool openni = false;
|
||||
bool openni2 = false;
|
||||
bool freenect = false;
|
||||
float rate = 0.0f;
|
||||
|
||||
if(argc < 2)
|
||||
@@ -121,6 +123,11 @@ int main (int argc, char * argv[])
|
||||
openni2 = true;
|
||||
continue;
|
||||
}
|
||||
if(strcmp(argv[i], "-freenect") == 0)
|
||||
{
|
||||
freenect = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("Unrecognized option : %s\n", argv[i]);
|
||||
showUsage();
|
||||
@@ -135,7 +142,33 @@ int main (int argc, char * argv[])
|
||||
|
||||
UINFO("Output = %s", fileName.toStdString().c_str());
|
||||
UINFO("Show = %s", show?"true":"false");
|
||||
UINFO("Openni = %s", openni?"true":"false");
|
||||
if(openni)
|
||||
{
|
||||
UINFO("Openni = true");
|
||||
if(!CameraOpenni::available())
|
||||
{
|
||||
UERROR("Openni is not available. Please select another driver.");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if(openni2)
|
||||
{
|
||||
UINFO("Openni2 = true");
|
||||
if(!CameraOpenNI2::available())
|
||||
{
|
||||
UERROR("Openni2 is not available. Please select another driver.");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if(freenect)
|
||||
{
|
||||
UINFO("Freenect = true");
|
||||
if(!CameraFreenect::available())
|
||||
{
|
||||
UERROR("Freenect is not available. Please select another driver.");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
UINFO("Rate =%f Hz", rate);
|
||||
|
||||
app = new QApplication(argc, argv);
|
||||
@@ -154,6 +187,10 @@ int main (int argc, char * argv[])
|
||||
{
|
||||
cam = new rtabmap::CameraThread(new rtabmap::CameraOpenni("", rate, rtabmap::Transform(0,0,1,0, -1,0,0,0, 0,-1,0,0)));
|
||||
}
|
||||
else if(freenect)
|
||||
{
|
||||
cam = new rtabmap::CameraThread(new rtabmap::CameraFreenect(0, rate, rtabmap::Transform(0,0,1,0, -1,0,0,0, 0,-1,0,0)));
|
||||
}
|
||||
else
|
||||
{
|
||||
cam = new rtabmap::CameraThread(new rtabmap::CameraVideo(0, rate));
|
||||
|
||||
Reference in New Issue
Block a user