IshitaTakeshi / lsd_slam_noros

ROS-independent implementation of LSD-SLAM
GNU General Public License v3.0
21 stars 7 forks source link

Gtk-WARNING on macOS #6

Closed adamjstewart closed 3 years ago

adamjstewart commented 3 years ago

I followed all of the instructions but I'm seeing the following error on macOS:

$ ./bin/main_on_images data/sequence_$SEQUENCE
Reading Calibration from file data/sequence_30/camera.txt ... found!
found ATAN camera model, building rectifier.
Input resolution: 1280 1024
In: 0.535719 0.669567 0.493249 0.500409 0.897966
Out: Crop
Output resolution: 640 480
new K: 277.523987 291.680328 312.474304 240.035583
old K: 685.720764 685.636475 630.858154 511.918457
Prepped Warp matrices
Started mapping thread!
Started  constraint search thread!
Started optimization thread 
found 1800 image files in folder data/sequence_30/images/!
reading data/sequence_30/images/00000.jpg
Doing Random initialization!

(DebugWindow DEPTH:89): Gtk-WARNING **: 22:10:38.170: cannot open display: 192.168.0.102:0

I have XQuartz installed, and the script does open an xterm window (am I supposed to use this for something?). This is on macOS 10.15.7 with Docker 2.5.0.1. Any suggestions?

P.S. The steps worked fine on Ubuntu, just not on macOS.

adamjstewart commented 3 years ago

Managed to figure out this problem. If you go to XQuartz > Preferences > Security, make sure "Allow connections from network clients" is checked. https://medium.com/@mreichelt/how-to-show-x11-windows-within-docker-on-mac-50759f4b65cb

After I solved this, I ended up getting different Gtk-WARNING messages though.