mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Added CameraStereoImages class to read stereo images from a directory. Added a particle filter to smooth odometry trajectory. Added parameter RGBD/OptimizeEpsilon to limit TORO iterations when error improvement is small. Added Rtabmap/CreateIntermediateNodes parameter: this can be used to keep all odometry poses 'between' nodes used for loop closure detection. Added PnP approach to loop closure constraint estimation. Fixed decimation of stereo images when image size is odd.
This commit is contained in:
@@ -159,7 +159,8 @@ int main(int argc, char * argv[])
|
||||
}
|
||||
cv::Mat rgb, depth;
|
||||
float fx, fy, cx, cy;
|
||||
camera->takeImage(rgb, depth, fx, fy, cx, cy);
|
||||
double stamp = 0.0;
|
||||
camera->takeImage(rgb, depth, fx, fy, cx, cy, stamp);
|
||||
if(rgb.cols != depth.cols || rgb.rows != depth.rows)
|
||||
{
|
||||
UWARN("RGB (%d/%d) and depth (%d/%d) frames are not the same size! The registered cloud cannot be shown.",
|
||||
@@ -228,7 +229,7 @@ int main(int argc, char * argv[])
|
||||
|
||||
rgb = cv::Mat();
|
||||
depth = cv::Mat();
|
||||
camera->takeImage(rgb, depth, fx, fy, cx, cy);
|
||||
camera->takeImage(rgb, depth, fx, fy, cx, cy, stamp);
|
||||
}
|
||||
cv::destroyWindow("Video");
|
||||
cv::destroyWindow("Depth");
|
||||
|
||||
Reference in New Issue
Block a user