About the distance measurement #3608
-
QuestionWhat's your question?Hi, I have a question about the Airsim simulation platform. I want to measure the distance between the quadcopter and the target on the ground. I think it maybe a slash. I don't know whether the Lidar sensor in airsim can achieve that. If it can, how can I setting? Thanks for you help! Include context on what you are trying to achieveContext detailsInclude details of what you already did to find answers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi @git-liweichao Are you trying to get the 'ground truth' distance between the drone and the object or do you want to obtain sensor-based calculation of the distance between the drone and the object? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. I want to obtain sensor-based calculation of the distance between the drone and the object. If I can also get the 'ground truth' distance between the drone and the object, it will be more helpful for me. |
Beta Was this translation helpful? Give feedback.
-
|
Hi and welcome @git-liweichao! you can accomplish that using |
Beta Was this translation helpful? Give feedback.
Hi and welcome @git-liweichao! you can accomplish that using
simGetObjectPoseandsimGetVehiclePoseand a subtraction. Take a look at https://microsoft.github.io/AirSim/apis/#common-apis and simGetVehiclePose