raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.41k stars 4.69k forks source link

disable pangoline view. #668

Open rahulsharma11 opened 6 years ago

rahulsharma11 commented 6 years ago

Hi, i am using Orbslam2 on my rockpro64 board by ssh. I also have made bool bUseViewer = false in System.h file. But still getting error- Start processing sequence ... terminate called after throwing an instance of 'std::runtime_error' what(): Pangolin X11: Failed to open X display ./stereo_live.sh: line 1: 19314 Aborted ./Examples/Stereo/stereo_live Vocabulary/ORBvoc.txt Examples/Stereo/KITTI00-02.yaml

Please suggest. Thanks.

antoniovillavicencio commented 5 years ago

You don't have to modify System.h, that's the definition of the file and you are breaking the program. Instead modify where you actually call that function. It's something like // Create SLAM system. It initializes all system threads and gets ready to process frames. ORB_SLAM2::System SLAM(argv[1], argv[2], ORB_SLAM2::System::RGBD, false);

That line is in your main programme.

almondboi commented 3 years ago

You don't have to modify System.h, that's the definition of the file and you are breaking the program. Instead modify where you actually call that function. It's something like // Create SLAM system. It initializes all system threads and gets ready to process frames. ORB_SLAM2::System SLAM(argv[1], argv[2], ORB_SLAM2::System::RGBD, false);

That line is in your main programme.

In which file is this line situated in?

catproof commented 3 years ago

i was able to get rid of the pangolin error by opening another terminal and typing in: xhost +