Blobposition

Localization device that treats blobs as object markers that can be used to retrieve real position of given object. More...

Localization device that treats blobs as object markers that can be used to retrieve real position of given object.

This device computes real position of some object found by blobfinder that denotes it by a blob of given color key. If only one color key is given in configuration file options, only px and py coordinates will be computed leaving pa filled with zero. If two color keys are given, two differently coloured blobs (with each of those color keys) must be found by blobfinder device in order to compute object position. In such a case position of the object is found in the middle of the line segment between those two blobs. Knowing which blob is which this driver can compute complete information about object position (px, py, pa). If more than one blob with any of given color keys is found, no position is computed. If position cannot be computed, this fact will be indicated by 'stall' field set to 1; other fields will be filled with previously computed values.

When this driver is started, camera device from which blobfinder reads data should remain static all the time. Moving the camera distorts computation results.

Compile-time dependencies
Provides
Requires
Configuration requests
Configuration file options
Example
driver
(
  name "blobposition"
  provides ["position2d:0"]
  requires ["blobfinder:0"]
  x_ppm 99
  y_ppm 97
  expected_size [640 480]
  offset [358 258]
  colorkeys ["0x00ff0000" "0x0000ff00"]
)
Author
Paul Osmialowski