mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
CameraRGB: updated error msg when depth format is wrong
This commit is contained in:
@@ -643,9 +643,9 @@ SensorData CameraImages::captureImage(CameraInfo * info)
|
|||||||
{
|
{
|
||||||
if(img.type() != CV_16UC1 && img.type() != CV_32FC1)
|
if(img.type() != CV_16UC1 && img.type() != CV_32FC1)
|
||||||
{
|
{
|
||||||
UERROR("Depth is on and the loaded image has not a format supported (file = \"%s\"). "
|
UERROR("Depth is on and the loaded image has not a format supported (file = \"%s\", type=%d). "
|
||||||
"Formats supported are 16 bits 1 channel and 32 bits 1 channel.",
|
"Formats supported are 16 bits 1 channel (mm) and 32 bits 1 channel (m).",
|
||||||
imageFilePath.c_str());
|
imageFilePath.c_str(), img.type());
|
||||||
img = cv::Mat();
|
img = cv::Mat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user