Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed segmentation fault while running stereo KITTI example #876

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,4 @@ if(realsense2_FOUND)
add_executable(stereo_inertial_realsense_D435i_old
Examples_old/Stereo-Inertial/stereo_inertial_realsense_D435i.cc)
target_link_libraries(stereo_inertial_realsense_D435i_old ${PROJECT_NAME})
endif()
endif()
1 change: 0 additions & 1 deletion Examples/Monocular/mono_euroc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ int main(int argc, char **argv)
int proccIm = 0;
for(int ni=0; ni<nImages[seq]; ni++, proccIm++)
{

// Read image from file
im = cv::imread(vstrImageFilenames[seq][ni],cv::IMREAD_UNCHANGED); //,CV_LOAD_IMAGE_UNCHANGED);
double tframe = vTimestampsCam[seq][ni];
Expand Down
2 changes: 1 addition & 1 deletion Examples/Stereo/KITTI00-02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Viewer.PointSize: 2.0
Viewer.CameraSize: 0.7
Viewer.CameraLineWidth: 3.0
Viewer.ViewpointX: 0.0
Viewer.ViewpointY: -100
Viewer.ViewpointY: -100.0
Viewer.ViewpointZ: -0.1
Viewer.ViewpointF: 2000.0

2 changes: 1 addition & 1 deletion include/System.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ class System

}// namespace ORB_SLAM

#endif // SYSTEM_H
#endif // SYSTEM_H
10 changes: 7 additions & 3 deletions src/Settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,15 @@ namespace ORB_SLAM3 {
else{
output << "Kannala-Brandt";
}
output << "" << ": [";
for(size_t i = 0; i < settings.originalCalib2_->size(); i++){

if (settings.cameraType_ != Settings::Rectified){
output << "" << ": [";
for(size_t i = 0; i < settings.originalCalib2_->size(); i++){
output << " " << settings.originalCalib2_->getParameter(i);
}
output << " ]" << endl;
}
output << " ]" << endl;


if(!settings.vPinHoleDistorsion2_.empty()){
output << "\t-Camera 1 distortion parameters: [ ";
Expand Down
1 change: 0 additions & 1 deletion src/System.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1546,4 +1546,3 @@ string System::CalculateCheckSum(string filename, int type)
}

} //namespace ORB_SLAM