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: >
|
2019-08-03 02:15:14 +08:00
|
|
|
A sensor actor.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - 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: >
|
2019-07-09 22:03:58 +08:00
|
|
|
Register a callback to be executed each time a new measurement is
|
|
|
|
received. The callback must accept a single argument containing the
|
|
|
|
sensor data; the type of this object varies depending on the type of
|
|
|
|
sensor, but they all derive from carla.SensorData.
|
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-07-03 00:32:23 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|