-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distance Sensor in AirSim #2444
Comments
Distance sensor currently doesn't support modification of orientation or position through the settings, could have a look at using Lidar for this |
Can you give an example on how to taake the orientaaation of a sensor from settings and change it and apply it as you have said ? |
The settings for Lidar are parsed here - https://github.com/microsoft/AirSim/blob/master/AirLib/include/common/AirSimSettings.hpp#L1175 This should be a good starting place for adding such a feature. Files across different sensors have similar names and implementations, to make it easier for developing new features, which is the case across most of the AirSim codebase for different vehicles, etc. |
does the distance sensor still have the limitation of modification of orientation? |
I believe so, don't remember any changes being made to sensors, etc recently |
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}
The text was updated successfully, but these errors were encountered: