mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed freenect camera to handle K4W (libfreenect must be built from https://github.com/renewagner/libfreenect, k4w-wip branch).
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1678 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -736,9 +736,8 @@ CameraFreenect::CameraFreenect(int deviceId, float imageRate, const Transform &
|
||||
{
|
||||
#ifdef WITH_FREENECT
|
||||
if(freenect_init(&ctx_, NULL) < 0) UERROR("Cannot initialize freenect library");
|
||||
// We claim both the motor and camera devices, since this class exposes both.
|
||||
// It does not support audio, so we do not claim it.
|
||||
freenect_select_subdevices(ctx_, static_cast<freenect_device_flags>(FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA));
|
||||
// claim camera
|
||||
freenect_select_subdevices(ctx_, static_cast<freenect_device_flags>(FREENECT_DEVICE_CAMERA));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user