2019-05-03 18:18:02 +08:00
|
|
|
---
|
2019-06-06 22:58:48 +08:00
|
|
|
- module_name: carla
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-05-03 20:56:18 +08:00
|
|
|
# - CLASSES ------------------------------
|
|
|
|
classes:
|
|
|
|
- class_name: WeatherParameters
|
2019-06-06 19:13:47 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
WeatherParameters class is used for requesting and changing the lighting and weather conditions inside the world.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: cloudyness
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
Weather cloudyness. Values range from 0 to 100.
|
2019-05-10 18:16:27 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: precipitation
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
Precipitation amount for controlling rain intensity. Values range from 0 to 100.
|
2019-05-10 18:16:27 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: precipitation_deposits
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-06-11 22:29:54 +08:00
|
|
|
Precipitation deposits for controlling the area of puddles on roads. Values range from 0 to 100.
|
2019-05-10 18:16:27 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: wind_intensity
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
Wind intensity. Values range from 0 to 100.
|
2019-05-10 18:16:27 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: sun_azimuth_angle
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
Azimuth angle of the sun in degrees. Values range from 0 to 360.
|
2019-05-10 18:16:27 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: sun_altitude_angle
|
2019-06-11 21:32:02 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-23 00:43:15 +08:00
|
|
|
Altitude angle of the sun in degrees. Values range from -90 to 90.
|
2019-05-10 18:16:27 +08:00
|
|
|
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: __init__
|
|
|
|
params:
|
2019-05-10 18:16:27 +08:00
|
|
|
- param_name: cloudyness
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
- param_name: precipitation
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
- param_name: precipitation_deposits
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
- param_name: wind_intensity
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
- param_name: sun_azimuth_angle
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
- param_name: sun_altitude_angle
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-10 18:16:27 +08:00
|
|
|
WeatherParameters constructor
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __eq__
|
|
|
|
params:
|
2019-05-10 18:16:27 +08:00
|
|
|
- param_name: other
|
|
|
|
return: bool
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-10 18:16:27 +08:00
|
|
|
Returns True if `self` and `other` are equal
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __ne__
|
|
|
|
params:
|
2019-05-10 18:16:27 +08:00
|
|
|
- param_name: other
|
|
|
|
return: bool
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-05-10 18:16:27 +08:00
|
|
|
Returns True if `self` and `other` are not equal
|
2019-07-03 00:32:23 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|