ptz
[Interface specifications]


Detailed Description

Pan-tilt-zoom unit.

The ptz interface is used to control a pan-tilt-zoom unit, such as a camera.

#define PLAYER_PTZ_MAX_CONFIG_LEN   32
 Maximum command length for use with PLAYER_PTZ_REQ_GENERIC request; based on the Sony EVID30 camera right now.
#define PLAYER_PTZ_VELOCITY_CONTROL   0
 Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
#define PLAYER_PTZ_POSITION_CONTROL   1
 Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
#define PLAYER_PTZ_REQ_GENERIC   1
 Request/reply subtype: generic.
#define PLAYER_PTZ_REQ_CONTROL_MODE   2
 Request/reply subtype: control mode.
#define PLAYER_PTZ_REQ_AUTOSERVO   3
 Request/reply subtype: autoservo.
#define PLAYER_PTZ_REQ_GEOM   4
 Request/reply subtype: geometry.
#define PLAYER_PTZ_DATA_STATE   1
 Data subtype: state.
#define PLAYER_PTZ_DATA_GEOM   2
 Data subtype: geometry.
#define PLAYER_PTZ_CMD_STATE   1
 Command subtype: state.
typedef player_ptz_data player_ptz_data_t
 Data: state (PLAYER_PTZ_DATA_STATE).
typedef player_ptz_cmd player_ptz_cmd_t
 Command: state (PLAYER_PTZ_CMD_STATE).
typedef player_ptz_geom player_ptz_geom_t
 Request/reply: Query geometry.
typedef player_ptz_req_generic player_ptz_req_generic_t
 Request/reply: Generic request.
typedef player_ptz_req_control_mode player_ptz_req_control_mode_t
 Request/reply: Control mode.

Typedef Documentation

typedef struct player_ptz_cmd player_ptz_cmd_t
 

Command: state (PLAYER_PTZ_CMD_STATE).

The ptz interface accepts commands that set change the state of the unit. Note that the commands are absolute, not relative.

typedef struct player_ptz_data player_ptz_data_t
 

Data: state (PLAYER_PTZ_DATA_STATE).

The ptz interface returns data reflecting the current state of the Pan-Tilt-Zoom unit.

typedef struct player_ptz_geom player_ptz_geom_t
 

Request/reply: Query geometry.

To request ptz geometry, send a null PLAYER_PTZ_REQ_GEOM request.

typedef struct player_ptz_req_control_mode player_ptz_req_control_mode_t
 

Request/reply: Control mode.

To switch between position and velocity control (for those drivers that support it), send a PLAYER_PTZ_REQ_CONTROL_MODE request. Note that this request changes how the driver interprets forthcoming commands from all clients. Null response.

typedef struct player_ptz_req_generic player_ptz_req_generic_t
 

Request/reply: Generic request.

To send a unit-specific command to the unit, use the PLAYER_PTZ_REQ_GENERIC request. Whether data is returned depends on the command that was sent. The device may fill in "config" with a reply if applicable.


Last updated 12 September 2005 21:38:45