mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +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
|
#ifdef WITH_FREENECT
|
||||||
if(freenect_init(&ctx_, NULL) < 0) UERROR("Cannot initialize freenect library");
|
if(freenect_init(&ctx_, NULL) < 0) UERROR("Cannot initialize freenect library");
|
||||||
// We claim both the motor and camera devices, since this class exposes both.
|
// claim camera
|
||||||
// It does not support audio, so we do not claim it.
|
freenect_select_subdevices(ctx_, static_cast<freenect_device_flags>(FREENECT_DEVICE_CAMERA));
|
||||||
freenect_select_subdevices(ctx_, static_cast<freenect_device_flags>(FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA));
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user