carla/PythonAPI/docs/sensor.yml

31 lines
845 B
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
- module_name: carla
doc: >
# - CLASSES ------------------------------
classes:
- class_name: Sensor
2019-06-05 21:05:57 +08:00
parent: carla.Actor
# - DESCRIPTION ------------------------
doc: >
# - PROPERTIES -------------------------
instance_variables:
- var_name: is_listening
type: boolean
doc: >
Is true if the sensor is listening for data
# - METHODS ----------------------------
methods:
- def_name: listen
params:
- param_name: callback
type: function
doc: >
Function that will be called each time the sensor sends data. As a parameter the function receives a buffer with the data.
doc: >
# --------------------------------------
- def_name: stop
doc: >
Stops listening for data
# --------------------------------------
2019-05-03 18:18:02 +08:00
...