mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
ORB_SLAM3: fixed error if left image is color. SensorCaptureThread: stop thread if data cannot be captured (e.g., end of dataset) instead of skipping indefinitly with error log.
This commit is contained in:
@@ -447,8 +447,12 @@ Transform OdometryORBSLAM3::computeTransform(
|
||||
if(stereo)
|
||||
{
|
||||
localTransform = data.stereoCameraModels()[0].localTransform();
|
||||
|
||||
Tcw = orbslam_->TrackStereo(data.imageRaw(), data.rightRaw(), data.stamp(), orbslamImus_);
|
||||
cv::Mat leftMono = data.imageRaw();
|
||||
if(data.imageRaw().channels() == 3) {
|
||||
leftMono = cv::Mat();
|
||||
cv::cvtColor(data.imageRaw(), leftMono, CV_BGR2GRAY);
|
||||
}
|
||||
Tcw = orbslam_->TrackStereo(leftMono, data.rightRaw(), data.stamp(), orbslamImus_);
|
||||
orbslamImus_.clear();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user