CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderWeather.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 <sstream>
10
#include <vector>
11
12
#include "
Carla/Weather/WeatherParameters.h
"
13
14
#pragma pack(push, 1)
15
struct
CarlaRecorderWeather
16
{
17
float
Cloudiness
;
18
float
Precipitation
;
19
float
PrecipitationDeposits
;
20
float
WindIntensity
;
21
float
SunAzimuthAngle
;
22
float
SunAltitudeAngle
;
23
float
FogDensity
;
24
float
FogDistance
;
25
float
FogFalloff
;
26
float
Wetness
;
27
float
ScatteringIntensity
;
28
float
MieScatteringScale
;
29
float
RayleighScatteringScale
;
30
float
DustStorm
;
31
32
void
Read
(std::istream &InFile);
33
34
void
Write
(std::ostream &OutFile);
35
};
36
#pragma pack(pop)
37
38
class
CarlaRecorderWeathers
39
{
40
public
:
41
42
void
Add
(
const
CarlaRecorderWeather
&InObj);
43
44
void
Clear
(
void
);
45
46
void
Write
(std::ostream &OutFile);
47
48
void
Read
(std::istream &InFile);
49
50
const
std::vector<CarlaRecorderWeather>&
GetWeathers
()
const
;
51
52
bool
IsEmpty
()
const
;
53
54
private
:
55
56
std::vector<CarlaRecorderWeather>
Weathers
;
57
};
WeatherParameters.h
CarlaRecorderWeathers
Definition
CarlaRecorderWeather.h:39
CarlaRecorderWeathers::IsEmpty
bool IsEmpty() const
Definition
CarlaRecorderWeather.cpp:101
CarlaRecorderWeathers::Clear
void Clear(void)
Definition
CarlaRecorderWeather.cpp:49
CarlaRecorderWeathers::Weathers
std::vector< CarlaRecorderWeather > Weathers
Definition
CarlaRecorderWeather.h:56
CarlaRecorderWeathers::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderWeather.cpp:84
CarlaRecorderWeathers::GetWeathers
const std::vector< CarlaRecorderWeather > & GetWeathers() const
Definition
CarlaRecorderWeather.cpp:96
CarlaRecorderWeathers::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderWeather.cpp:59
CarlaRecorderWeathers::Add
void Add(const CarlaRecorderWeather &InObj)
Definition
CarlaRecorderWeather.cpp:54
CarlaRecorderWeather
Definition
CarlaRecorderWeather.h:16
CarlaRecorderWeather::RayleighScatteringScale
float RayleighScatteringScale
Definition
CarlaRecorderWeather.h:29
CarlaRecorderWeather::WindIntensity
float WindIntensity
Definition
CarlaRecorderWeather.h:20
CarlaRecorderWeather::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderWeather.cpp:11
CarlaRecorderWeather::DustStorm
float DustStorm
Definition
CarlaRecorderWeather.h:30
CarlaRecorderWeather::SunAltitudeAngle
float SunAltitudeAngle
Definition
CarlaRecorderWeather.h:22
CarlaRecorderWeather::FogDistance
float FogDistance
Definition
CarlaRecorderWeather.h:24
CarlaRecorderWeather::Wetness
float Wetness
Definition
CarlaRecorderWeather.h:26
CarlaRecorderWeather::ScatteringIntensity
float ScatteringIntensity
Definition
CarlaRecorderWeather.h:27
CarlaRecorderWeather::FogDensity
float FogDensity
Definition
CarlaRecorderWeather.h:23
CarlaRecorderWeather::MieScatteringScale
float MieScatteringScale
Definition
CarlaRecorderWeather.h:28
CarlaRecorderWeather::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderWeather.cpp:29
CarlaRecorderWeather::PrecipitationDeposits
float PrecipitationDeposits
Definition
CarlaRecorderWeather.h:19
CarlaRecorderWeather::SunAzimuthAngle
float SunAzimuthAngle
Definition
CarlaRecorderWeather.h:21
CarlaRecorderWeather::Cloudiness
float Cloudiness
Definition
CarlaRecorderWeather.h:17
CarlaRecorderWeather::Precipitation
float Precipitation
Definition
CarlaRecorderWeather.h:18
CarlaRecorderWeather::FogFalloff
float FogFalloff
Definition
CarlaRecorderWeather.h:25
Generated by
1.18.0