minosworld / minos

MINOS: Multimodal Indoor Simulator
MIT License
201 stars 33 forks source link

How to retrieve camera depth? #66

Open kanwal41g opened 6 years ago

kanwal41g commented 6 years ago

I am a beginner at MINOS. In sim_config.py, in following line observations': {'color': True, 'forces': False, 'audio': False, 'objects': False, 'depth': True, 'map': False}, if i turn the depth True, why am i not getting the display of camera depth?

Moreover, in what file are all these variables information is getting stored?

msavva commented 6 years ago

Hi @kanwal41g ,

Thank you for trying out MINOS!

The gym demo code provides examples of how to retrieve depth data (as well as the other sensor types): https://github.com/minosworld/minos/blob/master/gym/demo.py If you want to see an interactive visualization including the depth sensor, please check out the code on the dev branch, follow the build instructions and then try the command python3 -m minos.tools.pygame_client --depth -s normal -s objectId -s objectType -s map --navmap --width 128 --height 128