I am trying to use the distance sensor (for a Vechile not a Drone) in airsim and it is working properly except that it only measure the distance from the bottom of the car to the ground and i don't know where to change it to make it measure the distance from the front of the car not from it's bottom , PLEASE HELP.
This is an example of the current distance sensor output :
{ 'distance': 0.05738349258899689,
'max_distance': 40.0,
'min_distance': 0.20000000298023224,
'relative_pose': { 'orientation': { 'w_val': 1.0,
'x_val': 0.0,
'y_val': 0.0,
'z_val': 0.0},
'position': { 'x_val': 0.0,
'y_val': 0.0,
'z_val': 0.0}},
'time_stamp': 1583421822500312700}
I am trying to use the distance sensor (for a Vechile not a Drone) in airsim and it is working properly except that it only measure the distance from the bottom of the car to the ground and i don't know where to change it to make it measure the distance from the front of the car not from it's bottom , PLEASE HELP.
This is an example of the current distance sensor output :
{ 'distance': 0.05738349258899689,
'max_distance': 40.0,
'min_distance': 0.20000000298023224,
'relative_pose': { 'orientation': { 'w_val': 1.0,
'x_val': 0.0,
'y_val': 0.0,
'z_val': 0.0},
'position': { 'x_val': 0.0,
'y_val': 0.0,
'z_val': 0.0}},
'time_stamp': 1583421822500312700}