gmlNetworkCamControl Class Reference

Detailed Description

A synchronous driver for the SONY EVID-30(31)(P) and EVID-100(P) pan / tilt / zoom video camera unit.

Synchronous means that only one command can be executed at a time. This is less powerfull than the original "gmlNetworkCamControl.tcl" driver but I couldn't deal with the bogus answers from some camera units. Commands are still asynchronous in the sens that they return immediately and will call a user-provided callback when the action has actually completed.

TODO: make this class a gmlEventSource. TODO: allow to queue commands.

Public Member Functions

constructor args

-port In case of a connection to a local serial port, the port number. Numbered from 1.
-viscaId The VISCA identificator of the camera (from 1 to 7). Can be set from the back of the SONY camera.
-silent If true, don't generate an error when trying to send a new command while the previous one did not complete yet.

destructor

send command args

Send a commend to the camera unit. The command argument is one of the following; it is followed by parameters as necessary. If required, a callback script can be added as an extra argument. It will be called (asynchronously) upon completion, eventually with arguments in the case of the accessor commands.

home
move the camera to its "home" position
absPos pan tilt
move the camera to a specific position
absZoom zoom
zoom the camera optics to a specific value
gain gain
set the camera gain to a specific value
exposureMode auto|manual|shutter|iris|bright
set the camera's auto gain aud exposure behavior
shutterPos position
set the camera shutter timing
focusMode auto|manual
set the focus mode
getAbsPos
return the current pan and tilt
getAbsZoom
return the current zoom coefficient
getExposureMode
return the current exposure mode
getFocusMode
return the current focus mode
getGain
return the current camera gain
getShutterPos
return the current shutter timing