absoluteMove method
Operation to move pan,tilt or zoom to a absolute destination.
The speed argument is optional. If an x/y speed value is given it is up to the device to either use the x value as absolute resulting speed vector or to map x and y to the component speed. If the speed argument is omitted, the default speed set by the PtzConfiguration will be used.
ACCESS CLASS: ACTUATE
Implementation
Future<bool> absoluteMove(
String profileToken, {
required PtzVector position,
PtzSpeed? speed,
}) async {
loggy.debug('absoluteMove');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: PtzRequest.absoluteMove(
profileToken,
position: position,
speed: speed,
),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}