next up previous contents
Next: 4.11 sonar Up: 4. Device Reference Previous: 4.9 power   Contents

Subsections


4.10 ptz

Synopsis

The ptz proxy provides an interface to pan-tilt units such as the Sony PTZ camera.

Data



struct playerc_ptz_t : PTZ device data.

playerc_device_t info;
Device info; must be at the start of all device structures.

double pan, tilt;
The current ptz pan and tilt angles. pan : pan angle (+ve to the left, -ve to the right). tilt : tilt angle (+ve upwrds, -ve downwards).

double zoom;
The current zoom value (field of view angle).

Methods

playerc_ptz_t *playerc_ptz_create(playerc_client_t *client, int index);

Create a ptz proxy.

void playerc_ptz_destroy(playerc_ptz_t *device);

Destroy a ptz proxy.

int playerc_ptz_subscribe(playerc_ptz_t *device, int access);

Subscribe to the ptz device.

int playerc_ptz_unsubscribe(playerc_ptz_t *device);

Un-subscribe from the ptz device.

int playerc_ptz_set(playerc_ptz_t *device, double pan, double tilt, double zoom);

Set the pan, tilt and zoom values.

int playerc_ptz_set_ws(playerc_ptz_t *device, double pan, double tilt, double zoom, double panspeed, double tiltspeed);

Set the pan, tilt and zoom values. (and speed)


next up previous contents
Next: 4.11 sonar Up: 4. Device Reference Previous: 4.9 power   Contents
2004-05-31