YunzhuLi / InfoGAIL

[NIPS 2017] InfoGAIL: Interpretable Imitation Learning from Visual Demonstrations
MIT License
175 stars 63 forks source link

get_servers_input_tcp returns all-zero image #16

Closed somdebma closed 6 years ago

somdebma commented 6 years ago

If I just run the file snakeoil_gym.py, I am getting an all zero image every time. If I print out recv_data values within get_servers_input_tcp() they are basically all x00. The simulation plays fine on the UI - i.e., drive_example executes fine and I can see the graphics within the Torcs window fine. Any idea why this is happening? Can you point me to the location of the torcs source files where you made the modifications to get tcp data? I might be able to decode this better then.

somdebma commented 6 years ago

This issue went away if I comment out this line in raceengine.cpp glReadBuffer(GL_FRONT); Probably some device specific openGL error was causing zeros to be read into the image buffer. glReadPixels works fine without fine without first using glReadBuffer.