FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
445 stars 146 forks source link

problem to create continuos_move or any ptz #62

Open killercuts opened 4 years ago

killercuts commented 4 years ago

When I create a continuous move argument for http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove

Input: [ContinuousMove] ProfileToken [ReferenceToken] A reference to the MediaProfile. Velocity [PTZSpeed] A Velocity vector specifying the velocity of pan, tilt and zoom. PanTilt - optional; [Vector2D] Pan and tilt speed. The x component corresponds to pan and the y component to tilt. If omitted in a request, the current (if any) PanTilt movement should not be affected. Zoom - optional; [Vector1D] A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected. Timeout - optional; [duration] An optional Timeout parameter.

continuous_move = ptz_service.create_type('ContinuousMove') I only get this for continuous_move :

{
    'ProfileToken': '0',
    'Velocity': None,
    'Timeout': None
}

After I cant move the PTZ because continuous_move doesnt have vector PanTilt , Zoom .

Onvif for python 2 works well