jmccormac / pySceneNetRGBD

Scripts showing how to work with the SceneNetRGBD dataset
GNU General Public License v3.0
178 stars 46 forks source link

how to go about making the GUISANDBOX not pop up when running room_camera_intersection #24

Open juanhotencoding opened 6 years ago

juanhotencoding commented 6 years ago

Hello,

I was wondering if there was a quick and easy way of making the GUISANDBOX not pop up when running the camera trajectory code. Would it just be commenting out some lines of code? I am running on a server that throws an error with X11 display.

arjunds commented 6 years ago

The camera trajectory visualizer is all written in Pangolin and, theoretically, commenting out line 475: pangolin::CreateWindowAndBind("GUISandbox",w_width+150,w_height); in camera_trajectory_generator.cpp should stop the GUISandbox from showing up (but it will still render the frames and do all the visualization steps except without a visible GUI). If this doesn't work, or you want to speed it up by completely removing all the visualization code, search for lines that reference pangolin, or the following variables d_panel, s_cam, saved_s_cam, d_cam and comment those lines out. Hope this helps!

juanhotencoding commented 6 years ago

Just commenting out line 475 in the camera_trajectory_generator.cpp did not work, it Seg Faulted, looks like I will have to, as you mentioned, comb through the code for all instances of pangolin.

arjunds commented 6 years ago

Yeah sorry you'd have to comment out everything just because it tries to add panels to the GUI but there is no GUI after commenting out line 475 - It makes sense that it would seg fault.

BKAUTO commented 5 years ago

@juanhotencoding , Hello! I ran into the same problem with you when I am trying to disable the GuiSanbox. Have you solved the problem? Could you please tell me which lines need to be modified in camera trajectory codes?