NAOqi Sensors - Overview | API
See also
Namespace : AL
#include <alproxies/alsonarproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Gets the current period.
Returns: | Refresh period (in milliseconds). |
---|
Gets the current precision.
Returns: | Precision of the extractor. |
---|
Gets the period for a specific subscription.
Parameters: |
|
---|---|
Returns: | Refresh period (in milliseconds). |
Gets the precision for a specific subscription.
Parameters: |
|
---|---|
Returns: | precision of the extractor |
Get the list of values updated in ALMemory.
Returns: | Array of values updated by this extractor in ALMemory |
---|
Gets the parameters given by the module.
Returns: | Array of names and parameters of all subscribers. |
---|
Subscribes to the extractor. This causes the extractor to start writing information to memory using the keys described by getOutputNames(). These can be accessed in memory using ALMemory.getData(“keyName”). In many cases you can avoid calling subscribe on the extractor by just calling ALMemory.subscribeToEvent() supplying a callback method. This will automatically subscribe to the extractor for you.
Parameters: |
|
---|
Subscribes to the extractor. This causes the extractor to start writing information to memory using the keys described by getOutputNames(). These can be accessed in memory using ALMemory.getData(“keyName”). In many cases you can avoid calling subscribe on the extractor by just calling ALMemory.subscribeToEvent() supplying a callback method. This will automatically subscribe to the extractor for you.
Parameters: |
|
---|
Unsubscribes from the extractor.
Parameters: |
|
---|
Updates the period if relevant.
Parameters: |
|
---|
Updates the precision if relevant.
Parameters: |
|
---|
raised when there is someting in front of NAO (left side) at less than 0.5m.
Parameters: |
|
---|
raised when there is someting in front of NAO (right side) at less than 0.5m.
Parameters: |
|
---|
raised when there is nothing in front of NAO nor on his left side.
Parameters: |
|
---|
raised when there is nothing in front of NAO nor on his right side.
Parameters: |
|
---|