AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How to get the real distance

Open dehuachen2017 opened this issue 8 years ago • 6 comments

Hey! I want to know the distance from the drone to the view. But I do not know how to get the real distance. Thanks.

dehuachen2017 avatar Mar 16 '18 03:03 dehuachen2017

I am wondering, too.

allen9273 avatar Mar 16 '18 07:03 allen9273

What do you mean distance from "the view"? Can you elaborate on your goal?

sytelus avatar Mar 23 '18 05:03 sytelus

I'd like to recognize humans in the environment. Upon this, flying to the front of the human and maintain a specific distance from the human. How can I approach this?

allen9273 avatar Mar 23 '18 13:03 allen9273

depth map img_0_3_10520684179087

for example, I want to know the distance from drone to tree, building,... What do these gray values represent the true distance? thanks.

dehuachen2017 avatar Mar 27 '18 01:03 dehuachen2017

Please look at HelloDrone.py example that shows how to get depth map as floats 2D numpy array. Each cell value then is distance.

sytelus avatar Apr 12 '18 05:04 sytelus

Thank you for your reply.

dehuachen2017 avatar Apr 12 '18 08:04 dehuachen2017