mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-10 03:29:49 +08:00
Fixed crash when subscribing with depth image
This commit is contained in:
@@ -1856,7 +1856,7 @@ bool convertRGBDMsgs(
|
||||
}
|
||||
}
|
||||
|
||||
if(isDepth)
|
||||
if(isDepth && !depthMsgs.empty())
|
||||
{
|
||||
UASSERT_MSG(
|
||||
imageWidth/depthWidth == imageHeight/depthHeight,
|
||||
|
||||
Reference in New Issue
Block a user