CARLA
Public Member Functions | Public Attributes | List of all members
carla::rpc::WeatherParameters Class Reference

#include <WeatherParameters.h>

+ Collaboration diagram for carla::rpc::WeatherParameters:

Public Member Functions

 MSGPACK_DEFINE_ARRAY (cloudiness, precipitation, precipitation_deposits, wind_intensity, sun_azimuth_angle, sun_altitude_angle, fog_density, fog_distance, fog_falloff, wetness, scattering_intensity, mie_scattering_scale, rayleigh_scattering_scale, dust_storm)
 
bool operator!= (const WeatherParameters &rhs) const
 
bool operator== (const WeatherParameters &rhs) const
 
 WeatherParameters ()=default
 
 WeatherParameters (float in_cloudiness, float in_precipitation, float in_precipitation_deposits, float in_wind_intensity, float in_sun_azimuth_angle, float in_sun_altitude_angle, float in_fog_density, float in_fog_distance, float in_fog_falloff, float in_wetness, float in_scattering_intensity, float in_mie_scattering_scale, float in_rayleigh_scattering_scale, float in_dust_storm)
 

Public Attributes

float cloudiness = 0.0f
 
float dust_storm = 0.0f
 
float fog_density = 0.0f
 
float fog_distance = 0.0f
 
float fog_falloff = 0.0f
 
float mie_scattering_scale = 0.0f
 
float precipitation = 0.0f
 
float precipitation_deposits = 0.0f
 
float rayleigh_scattering_scale = 0.0331f
 
float scattering_intensity = 0.0f
 
float sun_altitude_angle = 0.0f
 
float sun_azimuth_angle = 0.0f
 
float wetness = 0.0f
 
float wind_intensity = 0.0f
 

Static Public Attributes

Weather presets
static WeatherParameters Default = { -1.0f, -1.0f, -1.0f, -1.00f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters ClearNoon = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters CloudyNoon = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetNoon = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetCloudyNoon = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters MidRainyNoon = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters HardRainNoon = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 45.0f, 7.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters SoftRainNoon = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters ClearSunset = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters CloudySunset = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetSunset = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetCloudySunset = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters MidRainSunset = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters HardRainSunset = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 15.0f, 7.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters SoftRainSunset = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters ClearNight = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters CloudyNight = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetNight = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters WetCloudyNight = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters SoftRainNight = { 60.0f, 30.0f, 50.0f, 30.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters MidRainyNight = { 80.0f, 60.0f, 60.0f, 60.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 80.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters HardRainNight = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, -90.0f, 100.0f, 0.75f, 0.1f, 100.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
 
static WeatherParameters DustStorm = { 100.0f, 0.0f, 0.0f, 100.0f, -1.0f, 45.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 100.0f }
 

Detailed Description

Definition at line 20 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Constructor & Destructor Documentation

◆ WeatherParameters() [1/2]

carla::rpc::WeatherParameters::WeatherParameters ( )
default

◆ WeatherParameters() [2/2]

carla::rpc::WeatherParameters::WeatherParameters ( float  in_cloudiness,
float  in_precipitation,
float  in_precipitation_deposits,
float  in_wind_intensity,
float  in_sun_azimuth_angle,
float  in_sun_altitude_angle,
float  in_fog_density,
float  in_fog_distance,
float  in_fog_falloff,
float  in_wetness,
float  in_scattering_intensity,
float  in_mie_scattering_scale,
float  in_rayleigh_scattering_scale,
float  in_dust_storm 
)
inline

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

Referenced by operator==().

+ Here is the caller graph for this function:

◆ operator!=()

bool carla::rpc::WeatherParameters::operator!= ( const WeatherParameters rhs) const
inline

◆ operator==()

bool carla::rpc::WeatherParameters::operator== ( const WeatherParameters rhs) const
inline

Definition at line 156 of file LibCarla/source/carla/rpc/WeatherParameters.h.

References MSGPACK_DEFINE_ARRAY().

+ Here is the call graph for this function:

Member Data Documentation

◆ ClearNight

WP carla::rpc::WP::ClearNight = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ ClearNoon

WP carla::rpc::WP::ClearNoon = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ ClearSunset

WP carla::rpc::WP::ClearSunset = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ cloudiness

float carla::rpc::WeatherParameters::cloudiness = 0.0f

Definition at line 84 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ CloudyNight

WP carla::rpc::WP::CloudyNight = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ CloudyNoon

WP carla::rpc::WP::CloudyNoon = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ CloudySunset

WP carla::rpc::WP::CloudySunset = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ Default

WP carla::rpc::WP::Default = { -1.0f, -1.0f, -1.0f, -1.00f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ dust_storm

float carla::rpc::WeatherParameters::dust_storm = 0.0f

Definition at line 97 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ DustStorm

WP carla::rpc::WP::DustStorm = { 100.0f, 0.0f, 0.0f, 100.0f, -1.0f, 45.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 100.0f }
static

◆ fog_density

float carla::rpc::WeatherParameters::fog_density = 0.0f

◆ fog_distance

float carla::rpc::WeatherParameters::fog_distance = 0.0f

Definition at line 91 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ fog_falloff

float carla::rpc::WeatherParameters::fog_falloff = 0.0f

Definition at line 92 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ HardRainNight

WP carla::rpc::WP::HardRainNight = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, -90.0f, 100.0f, 0.75f, 0.1f, 100.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ HardRainNoon

WP carla::rpc::WP::HardRainNoon = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 45.0f, 7.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ HardRainSunset

WP carla::rpc::WP::HardRainSunset = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 15.0f, 7.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ MidRainSunset

WP carla::rpc::WP::MidRainSunset = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ MidRainyNight

WP carla::rpc::WP::MidRainyNight = { 80.0f, 60.0f, 60.0f, 60.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 80.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ MidRainyNoon

WP carla::rpc::WP::MidRainyNoon = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ mie_scattering_scale

float carla::rpc::WeatherParameters::mie_scattering_scale = 0.0f

Definition at line 95 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ precipitation

float carla::rpc::WeatherParameters::precipitation = 0.0f

◆ precipitation_deposits

float carla::rpc::WeatherParameters::precipitation_deposits = 0.0f

Definition at line 86 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ rayleigh_scattering_scale

float carla::rpc::WeatherParameters::rayleigh_scattering_scale = 0.0331f

Definition at line 96 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ scattering_intensity

float carla::rpc::WeatherParameters::scattering_intensity = 0.0f

Definition at line 94 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ SoftRainNight

WP carla::rpc::WP::SoftRainNight = { 60.0f, 30.0f, 50.0f, 30.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ SoftRainNoon

WP carla::rpc::WP::SoftRainNoon = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ SoftRainSunset

WP carla::rpc::WP::SoftRainSunset = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ sun_altitude_angle

float carla::rpc::WeatherParameters::sun_altitude_angle = 0.0f

◆ sun_azimuth_angle

float carla::rpc::WeatherParameters::sun_azimuth_angle = 0.0f

Definition at line 88 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ WetCloudyNight

WP carla::rpc::WP::WetCloudyNight = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ WetCloudyNoon

WP carla::rpc::WP::WetCloudyNoon = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ WetCloudySunset

WP carla::rpc::WP::WetCloudySunset = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ wetness

float carla::rpc::WeatherParameters::wetness = 0.0f

Definition at line 93 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().

◆ WetNight

WP carla::rpc::WP::WetNight = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 60.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ WetNoon

WP carla::rpc::WP::WetNoon = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ WetSunset

WP carla::rpc::WP::WetSunset = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 1.0f, 0.03f, 0.0331f, 0.0f }
static

◆ wind_intensity

float carla::rpc::WeatherParameters::wind_intensity = 0.0f

Definition at line 87 of file LibCarla/source/carla/rpc/WeatherParameters.h.

Referenced by operator!=().


The documentation for this class was generated from the following files: