NAOqi Vision - Overview | API | Tutorials
See also
Namespace : AL
#include <alproxies/allandmarkdetectionproxy.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 one or several landmarks are currently being detected.
Parameters: |
|
---|
The output ALValue is organized as follows:
ALLandMarkDetectionInfo {
TimeStamp,
MarkInfo[N],
CameraPoseInNAOSpace,
CameraPoseInWorldSpace,
CurrentCameraName
}
with as many mark_info tags as marks currently detected.
This field is the time stamp of the image that was used to perform the detection.
TimeStamp {
TimeStamp_Seconds,
Timestamp_Microseconds
}
For each detected mark, we have one MarkInfo field:
MarkInfo {
ShapeInfo,
MarkID
}
ShapeInfo {
1,
alpha,
beta,
sizeX,
sizeY
}
is the number written on the naomark and which corresponds to its pattern.
Position6D of the camera at the time the image was taken, in FRAME_ROBOT.
Position6D of the camera at the time the image was taken, in FRAME_WORLD.
Name of the camera that was used to take the image (“CameraTop”, or “CameraBottom”).