carla/PythonAPI/docs/weather.yml

79 lines
2.3 KiB
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
2019-05-10 18:16:27 +08:00
- module_name: weather
2019-05-03 18:18:02 +08:00
doc: >
2019-05-10 18:16:27 +08:00
# - 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
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
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
doc: >
2019-05-23 00:43:15 +08:00
Precipitation deposits for controlling the area of puddles on roads.
2019-05-10 18:16:27 +08:00
# --------------------------------------
- var_name: wind_intensity
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
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
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:
- param_name: self
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:
- param_name: self
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:
- param_name: self
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
2019-05-03 18:18:02 +08:00
...