mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
cloudFromDepth(): changed roi ratios warning to error
This commit is contained in:
+10
-2
@@ -746,9 +746,13 @@ pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_EXP cloudFromSensorData(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UWARN("Cannot apply ROI ratios because resulting "
|
UERROR("Cannot apply ROI ratios [%f,%f,%f,%f] because resulting "
|
||||||
"dimension (depth=%dx%d rgb=%dx%d) cannot be divided exactly "
|
"dimension (depth=%dx%d rgb=%dx%d) cannot be divided exactly "
|
||||||
"by decimation parameter (%d). Ignoring ROI ratios...",
|
"by decimation parameter (%d). Ignoring ROI ratios...",
|
||||||
|
roiRatios[0],
|
||||||
|
roiRatios[1],
|
||||||
|
roiRatios[2],
|
||||||
|
roiRatios[3],
|
||||||
roiDepth.width,
|
roiDepth.width,
|
||||||
roiDepth.height,
|
roiDepth.height,
|
||||||
roiRgb.width,
|
roiRgb.width,
|
||||||
@@ -891,9 +895,13 @@ pcl::PointCloud<pcl::PointXYZRGB>::Ptr RTABMAP_EXP cloudRGBFromSensorData(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UWARN("Cannot apply ROI ratios because resulting "
|
UERROR("Cannot apply ROI ratios [%f,%f,%f,%f] because resulting "
|
||||||
"dimension (depth=%dx%d rgb=%dx%d) cannot be divided exactly "
|
"dimension (depth=%dx%d rgb=%dx%d) cannot be divided exactly "
|
||||||
"by decimation parameter (%d). Ignoring ROI ratios...",
|
"by decimation parameter (%d). Ignoring ROI ratios...",
|
||||||
|
roiRatios[0],
|
||||||
|
roiRatios[1],
|
||||||
|
roiRatios[2],
|
||||||
|
roiRatios[3],
|
||||||
roiDepth.width,
|
roiDepth.width,
|
||||||
roiDepth.height,
|
roiDepth.height,
|
||||||
roiRgb.width,
|
roiRgb.width,
|
||||||
|
|||||||
Reference in New Issue
Block a user