|
trikRuntime
|
Uses virtual line sensor to detect x coordinate of a center of an object that was in camera's field of view when "detect" method was called. More...
#include <objectSensorInterface.h>


Public Slots | |
| virtual void | init (bool showOnDisplay)=0 |
| Initializes a camera. More... | |
| virtual void | detect ()=0 |
| Detects the color of an object in center of current frame and memorizes it. More... | |
| virtual QVector< int > | read ()=0 |
| Returns x, y coordinates and size of an object in a form of vector [x; y; size]. More... | |
| virtual void | stop ()=0 |
| Stops detection until init() will be called again. More... | |
| virtual QVector< int > | getDetectParameters () const =0 |
| Get values returned by last "detect" operation. More... | |
Signals | |
| void | stopped () |
| Emitted when sensor is stopped successfully. More... | |
Additional Inherited Members | |
Public Types inherited from trikControl::DeviceInterface | |
| enum | Status { Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting, Status::ready, Status::stopping } |
| Device status. More... | |
Public Member Functions inherited from trikControl::DeviceInterface | |
| DeviceInterface ()=default | |
| virtual | ~DeviceInterface ()=default |
| virtual Status | status () const =0 |
| Returns current status of the device. More... | |
Static Public Member Functions inherited from trikControl::DeviceInterface | |
| static Status | combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent) |
| Helper method to return status of a device relying on other device to work. More... | |
Uses virtual line sensor to detect x coordinate of a center of an object that was in camera's field of view when "detect" method was called.
Used mainly to follow the line.
|
pure virtualslot |
Detects the color of an object in center of current frame and memorizes it.
|
pure virtualslot |
Get values returned by last "detect" operation.
Returned vector has 6 components - hue, saturation and value of a dominant color (got by "detect") and hue, saturation and value tolerance factors.
|
pure virtualslot |
Initializes a camera.
| showOnDisplay | - true if we want an image from a camera to be drawn on robot display. |
|
pure virtualslot |
Returns x, y coordinates and size of an object in a form of vector [x; y; size].
Returns 0 in every field if detect() was not called.
|
pure virtualslot |
Stops detection until init() will be called again.
|
signal |
Emitted when sensor is stopped successfully.