Fixed segmentation fault while running stereo KITTI example
While running stereo example, it resulted in a segmentation fault.
Problem:
When cameraType_ is specified as RECTIFIED originalCalib2_ object is not created in the Settings::readCamera2 method, but in the operator overload operator<< it prints these settings to the terminal which results in segmentation fault.
Solution:
Added a conditional to not print the settings for second camera if RECTIFIED is specified.
Disclaimer: I don't intend to create spam. If the ORB_SLAM3 developers wish me to stop posting, I will cease immediately.
ORB_SLAM3 seems to be inactive, but there are a number of community patches, including yours, which provide important bugfixes or improvements. Therefore I have created a new project ORB_SLAM_COMMUNITY (https://github.com/jeremysalwen/ORB_SLAM_COMMUNITY) to gather together these improvements and continue active development. I have already merged this PR in the ORB_SLAM_COMMUNITY version. We would welcome any other contributions you might have.
It works. Thank you very much.