carla/PythonAPI/docs/weather.yml

85 lines
2.5 KiB
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
- module_name: carla
2019-05-03 18:18:02 +08:00
doc: >
# - CLASSES ------------------------------
classes:
- class_name: WeatherParameters
2019-06-06 19:13:47 +08:00
# - DESCRIPTION ------------------------
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.
# - PROPERTIES -------------------------
instance_variables:
- var_name: cloudyness
type: float
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
# --------------------------------------
- var_name: precipitation
type: float
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
# --------------------------------------
- var_name: precipitation_deposits
type: float
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
# --------------------------------------
- var_name: wind_intensity
type: float
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
# --------------------------------------
- var_name: sun_azimuth_angle
type: float
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
# --------------------------------------
- var_name: sun_altitude_angle
type: float
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
# - 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
doc: >
2019-05-10 18:16:27 +08:00
WeatherParameters constructor
# --------------------------------------
- def_name: __eq__
params:
2019-05-10 18:16:27 +08:00
- param_name: other
return: bool
doc: >
2019-05-10 18:16:27 +08:00
Returns True if `self` and `other` are equal
# --------------------------------------
- def_name: __ne__
params:
2019-05-10 18:16:27 +08:00
- param_name: other
return: bool
doc: >
2019-05-10 18:16:27 +08:00
Returns True if `self` and `other` are not equal
# --------------------------------------
- def_name: __str__
doc: >
# --------------------------------------
2019-05-03 18:18:02 +08:00
...