Pan-tilt-zoom unit. More...

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_REQ_GENERIC   1
 Request/reply subtype: generic.
 
#define PLAYER_PTZ_REQ_CONTROL_MODE   2
 Request/reply subtype: control mode.
 
#define PLAYER_PTZ_REQ_GEOM   4
 Request/reply subtype: geometry.
 
#define PLAYER_PTZ_REQ_STATUS   5
 Request/reply subtype: status.
 
#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.
 
#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.
 
typedef struct player_ptz_data player_ptz_data_t
 Data: state (PLAYER_PTZ_DATA_STATE) More...
 
typedef struct player_ptz_cmd player_ptz_cmd_t
 Command: state (PLAYER_PTZ_CMD_STATE) More...
 
typedef struct player_ptz_req_status player_ptz_req_status_t
 Request/reply: Query pan/tilt status. More...
 
typedef struct player_ptz_geom player_ptz_geom_t
 Request/reply: Query geometry. More...
 
typedef struct player_ptz_req_generic player_ptz_req_generic_t
 Request/reply: Generic request. More...
 
typedef struct player_ptz_req_control_mode player_ptz_req_control_mode_t
 Request/reply: Control mode. More...
 

Typedef Documentation

◆ 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.

◆ 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.

◆ player_ptz_geom_t

Request/reply: Query geometry.

To request ptz geometry, send a null PLAYER_PTZ_REQ_GEOM request.

◆ 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.

◆ 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.

◆ player_ptz_req_status_t

Request/reply: Query pan/tilt status.

To request pan/tilt status of the unit, send a null PLAYER_PTZ_REQ_STATUS request.