Distance Readings

100 views
Skip to first unread message

Scott Jordan

unread,
May 17, 2016, 9:27:05 AM5/17/16
to Visual Doom AI Users
I'm looking to get distance readings for objects (and walls) around the agent in a full 360 degrees, the idea being that it could be a simulated lidar/radar. This isn't for the competition just for some other research. I was thinking of shrinking the depth buffer down to a height of 1 and having it calculated for a full 360. I'm not sure if this is even possible or where to begin to even go about making this change in the code. I'm looking for any advice on if this is possible and what underlying structures I need to change. 


Wojciech Jaskowski

unread,
May 18, 2016, 7:47:10 AM5/18/16
to Scott Jordan, Visual Doom AI Users
If you do not mind spending a few game ticks for a scan than it should
be possible by making the agent quickly turn several times. Check the
delta_buttons.py example and change the line

game.add_available_button(Button.TURN_LEFT_RIGHT_DELTA, 5)

to, e.g.

game.add_available_button(Button.TURN_LEFT_RIGHT_DELTA, 300)

to see the effect.

Best,
Wojciech

Tolga A.

unread,
Jul 1, 2019, 12:30:41 PM7/1/19
to Visual Doom AI Users
Hey, have you figured this out?
I also try to keep the distance to the wall or object. But I don't understand exactly how to get the distance from the deep buffer. Since it is a maximum of 256 values, I would assume that the value 256 is the greatest distance. How exactly can this distance be assigned to the automap?
Reply all
Reply to author
Forward
0 new messages