factory ozon
- Description:
Specifies the ozon ozobot high-level functions.
- These functions are accessible via the
tabletop::
prefix.
- These functions are accessible via the
Methods
(static) ozonForward(distance)
- Description:
Moves the ozon a given distance foward.
Parameters:
Name | Type | Description |
---|---|---|
distance |
uint | The approximate distance in mm; 1 mm corresponds to about 2 pixels. |
(static) ozonTurn(angle)
- Description:
Turns the ozon a given angle in degree.
Parameters:
Name | Type | Description |
---|---|---|
angle |
int | The angle in degree, positive in the trigonometric direction. |
(static) ozonLight(index, blue, green, red)
- Description:
Lights one ozon led.
Parameters:
Name | Type | Description |
---|---|---|
index |
uint | The led mask, any combination of the following.
|
blue |
uchar | The blue color. |
green |
uchar | The green color. |
red |
uchar | The red color.
|
(static) ozonStop()
- Description:
Stops all ozon commands.
(static) ozonWhere() → {JSON}
- Description:
Returns the ozon absolute position and orientation in the camera frame of reference.
Returns:
The estimated position.
x
The Ozon horizontal final position, in pixel, -1 if undefined.- `y The Ozon vertical final position, in pixel, -1 if undefined.
a
The Ozon rotation, in degree, 0 if undefined.r
The Ozon apparent radius, in pixel, 0 in undefined.d
The local displacement in pixel to measure the orientation.
- Type
- JSON
(static) ozonMove(x, y, a, loopopt)
- Description:
Moves ozon to an absolute position and orientation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
uint | The Ozon horizontal final position, in pixel. |
||
y |
uint | The Ozon vertical final position, in pixel. |
||
a |
int | The Ozon rotation, in degree;
|
||
loop |
uint |
<optional> |
1
|
The maximal number of iteration. |
(static) ozonCommand(command)
- Description:
Sends a command to the ozon interface.
Parameters:
Name | Type | Description |
---|---|---|
command |
string | The command as defined by the ozon-lib python interface, i.e.:
|