mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
CLAMS: added isFinite conditions in coneFit (before reproject) http://official-rtab-map-forum.67519.x6.nabble.com/Depth-calibration-fatal-error-td2682.html
This commit is contained in:
@@ -190,6 +190,11 @@ namespace clams
|
||||
pt_lr.x += radius;
|
||||
pt_lr.y += radius;
|
||||
|
||||
if(!pcl::isFinite(pt_ul) || !pcl::isFinite(pt_lr))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
ppt_ul = reproject(pt_ul);
|
||||
ppt_lr = reproject(pt_lr);
|
||||
if(ppt_ul.z_ == 0 || !(ppt_ul.u_ >= 0 && ppt_ul.v_ >= 0 && ppt_ul.u_ < imageSize.width && ppt_ul.v_ < imageSize.height))
|
||||
|
||||
Reference in New Issue
Block a user