2019-05-03 18:18:02 +08:00
|
|
|
---
|
|
|
|
- module_name: carla
|
|
|
|
doc: >
|
2019-05-03 20:56:18 +08:00
|
|
|
# - CLASSES ------------------------------
|
|
|
|
classes:
|
|
|
|
- class_name: Sensor
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: is_listening
|
2019-06-28 23:23:56 +08:00
|
|
|
type: boolean
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-06-28 23:23:56 +08:00
|
|
|
Is true if the sensor is listening for data
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: listen
|
2019-06-28 23:23:56 +08:00
|
|
|
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.
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: stop
|
|
|
|
doc: >
|
2019-06-28 23:23:56 +08:00
|
|
|
Stops listening for data
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|