new FeatureExtractor(name, cb)
Creates a new feature extractor for pulling features out of raw perception data.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the feature extractor. |
cb |
function | The function to be called to process the input data. |
Extends
Methods
-
listen(sourceName)
-
Listens for
data
events from another ComponentParameters:
Name Type Description sourceName
string The name of the component to listen to
-
sendEvent(type, data)
-
Emits an event using the specified eventClass
Parameters:
Name Type Description type
string The event type to emit
data
* The data to emit
- Overrides: