CARLA
Loading...
Searching...
No Matches
LidarDescription.h
Go to the documentation of this file.
1// Copyright (c) 2026 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
11USTRUCT()
12struct 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)
61
62 /// General drop off rate.
63 UPROPERTY(EditAnywhere)
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
73 /// Horizontal resolution of the lidar, in degrees.
74 UPROPERTY(EditAnywhere)
76};
float DropOffAtZeroIntensity
General drop off rate.
float HorizontalFov
Horizontal field of view.
int RandomSeed
Random seed for the noise/dropoff used by this sensor.
float LowerFovLimit
Lower laser angle, counts from horizontal, negative values means under horizontal line.
float Range
Measure distance in centimeters.
float DropOffGenRate
General drop off rate.
uint32 Channels
Number of lasers.
float DropOffIntensityLimit
General drop off rate.
uint32 PointsPerSecond
Points generated by all lasers per second.
float RotationFrequency
Lidar rotation frequency.
float AtmospAttenRate
Attenuation Rate in the atmosphere in m^-1.
float HorizontalResolution
Horizontal resolution of the lidar, in degrees.
bool ShowDebugPoints
Wether to show debug points of laser hits in simulator.
float UpperFovLimit
Upper laser angle, counts from horizontal, positive values means above horizontal line.