mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Fixed build if PCL is not built with OpenNI
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user