mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Fixed Windows build errors #115
This commit is contained in:
@@ -519,7 +519,7 @@ bool CameraOpenNI2::init(const std::string & calibrationFolder, const std::strin
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
UERROR("CameraOpenNI2: Cannot open device \"%s\" with uri=\"%s\" (error=%d).", devices[0].getName(), devices[0].uri, error);
|
UERROR("CameraOpenNI2: Cannot open device \"%s\" (error=%d).", devices[0].getName(), error);
|
||||||
#else
|
#else
|
||||||
UERROR("CameraOpenNI2: Cannot open device \"%s\" (error=%d). Verify if \"%s\" is in udev rules: \"/lib/udev/rules.d/40-libopenni2-0.rules\". If not, add it and reboot.", devices[0].getName(), error, devices[0].getUri());
|
UERROR("CameraOpenNI2: Cannot open device \"%s\" (error=%d). Verify if \"%s\" is in udev rules: \"/lib/udev/rules.d/40-libopenni2-0.rules\". If not, add it and reboot.", devices[0].getName(), error, devices[0].getUri());
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ int main(int argc, char * argv[])
|
|||||||
UERROR("Not built with OpenNI2 support...");
|
UERROR("Not built with OpenNI2 support...");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
camera = new CameraOpenNI2("", 0, opticalRotation);
|
camera = new CameraOpenNI2("", CameraOpenNI2::kTypeColorDepth, 0, opticalRotation);
|
||||||
}
|
}
|
||||||
else if(driver == 2)
|
else if(driver == 2)
|
||||||
{
|
{
|
||||||
@@ -93,7 +93,7 @@ int main(int argc, char * argv[])
|
|||||||
UERROR("Not built with Freenect support...");
|
UERROR("Not built with Freenect support...");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
camera = new CameraFreenect(0, 0, opticalRotation);
|
camera = new CameraFreenect(0, CameraFreenect::kTypeColorDepth, 0, opticalRotation);
|
||||||
}
|
}
|
||||||
else if(driver == 3)
|
else if(driver == 3)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ int main(int argc, char * argv[])
|
|||||||
UERROR("Not built with OpenNI2 support...");
|
UERROR("Not built with OpenNI2 support...");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
camera = new CameraOpenNI2("", 0, opticalRotation);
|
camera = new CameraOpenNI2("", CameraOpenNI2::kTypeColorDepth, 0, opticalRotation);
|
||||||
}
|
}
|
||||||
else if(driver == 2)
|
else if(driver == 2)
|
||||||
{
|
{
|
||||||
@@ -127,7 +127,7 @@ int main(int argc, char * argv[])
|
|||||||
UERROR("Not built with Freenect support...");
|
UERROR("Not built with Freenect support...");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
camera = new CameraFreenect(0, 0, opticalRotation);
|
camera = new CameraFreenect(0, CameraFreenect::kTypeColorDepth, 0, opticalRotation);
|
||||||
}
|
}
|
||||||
else if(driver == 3)
|
else if(driver == 3)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user