CARLA
LidarDescription.h
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "LidarDescription.generated.h"
10 
11 USTRUCT()
12 struct CARLA_API FLidarDescription
13 {
14  GENERATED_BODY()
15 
16  /// Number of lasers.
17  UPROPERTY(EditAnywhere)
18  uint32 Channels = 32u;
19 
20  /// Measure distance in centimeters.
21  UPROPERTY(EditAnywhere)
22  float Range = 1000.0f;
23 
24  /// Points generated by all lasers per second.
25  UPROPERTY(EditAnywhere)
26  uint32 PointsPerSecond = 56000u;
27 
28  /// Lidar rotation frequency.
29  UPROPERTY(EditAnywhere)
30  float RotationFrequency = 10.0f;
31 
32  /// Upper laser angle, counts from horizontal, positive values means above
33  /// horizontal line.
34  UPROPERTY(EditAnywhere)
35  float UpperFovLimit = 10.0f;
36 
37  /// Lower laser angle, counts from horizontal, negative values means under
38  /// horizontal line.
39  UPROPERTY(EditAnywhere)
40  float LowerFovLimit = -30.0f;
41 
42  /// Horizontal field of view
43  UPROPERTY(EditAnywhere)
44  float HorizontalFov = 360.0f;
45 
46  /// Attenuation Rate in the atmosphere in m^-1.
47  UPROPERTY(EditAnywhere)
48  float AtmospAttenRate = 0.004f;
49 
50  /// Random seed for the noise/dropoff used by this sensor.
51  UPROPERTY(EditAnywhere)
52  int RandomSeed = 0;
53 
54  /// General drop off rate.
55  UPROPERTY(EditAnywhere)
56  float DropOffGenRate = 0.45f;
57 
58  /// General drop off rate.
59  UPROPERTY(EditAnywhere)
60  float DropOffIntensityLimit = 0.8f;
61 
62  /// General drop off rate.
63  UPROPERTY(EditAnywhere)
64  float DropOffAtZeroIntensity = 0.4f;
65 
66  /// Wether to show debug points of laser hits in simulator.
67  UPROPERTY(EditAnywhere)
68  bool ShowDebugPoints = false;
69 
70  UPROPERTY(EditAnywhere)
71  float NoiseStdDev = 0.0f;
72 };