Fixed build if PCL is not built with OpenNI

This commit is contained in:
matlabbe
2015-07-24 20:42:36 -04:00
parent f5dac46252
commit 911ab709af
5 changed files with 48 additions and 14 deletions

View File

@@ -144,7 +144,7 @@ int main(int argc, char * argv[])
}
else
{
camera = new rtabmap::CameraVideo(path, rate);
camera = new rtabmap::CameraVideo(path, false, rate);
}
}
else if(UDirectory::exists(path))

View File

@@ -302,11 +302,11 @@ int main(int argc, char * argv[])
Camera * camera = 0;
if(UDirectory::exists(path))
{
camera = new CameraImages(path, startAt, false, false, 1/rate);
camera = new CameraImages(path, startAt, false, false, 1.0f/rate);
}
else
{
camera = new CameraVideo(path, 1/rate);
camera = new CameraVideo(path, false, 1.0f/rate);
}
if(!camera || !camera->init())