Ptz

For clients to the Spot CAM Ptz service.

class bosdyn.client.spot_cam.ptz.PtzClient[source]

Bases: bosdyn.client.common.BaseClient

A client calling Spot CAM Ptz service.

default_service_name = 'spot-cam-ptz'
service_type = 'bosdyn.api.spot_cam.PtzService'
list_ptz(**kwargs)[source]

List all the available ptzs

list_ptz_async(**kwargs)[source]

Async version of list_ptz()

get_ptz_position(ptz_desc, **kwargs)[source]

Position of the specified ptz

get_ptz_position_async(ptz_desc, **kwargs)[source]

Async version of get_ptz_position()

get_ptz_velocity(ptz_desc, **kwargs)[source]

Velocity of the specified ptz

get_ptz_velocity_async(ptz_desc, **kwargs)[source]

Async version of get_ptz_velocity()

set_ptz_position(ptz_desc, pan, tilt, zoom, **kwargs)[source]

Set position of the specified ptz in PTZ-space

set_ptz_position_async(ptz_desc, pan, tilt, zoom, **kwargs)[source]

Async version of set_ptz_position()

set_ptz_velocity(ptz_desc, pan, tilt, zoom, **kwargs)[source]

Set velocity of the specified ptz in PTZ-space

set_ptz_velocity_async(ptz_desc, pan, tilt, zoom, **kwargs)[source]

Async version of set_ptz_velocity()

bosdyn.client.spot_cam.ptz.shift_pan_angle(pan)[source]

Shift the pan angle (degrees) so that it is in the [0,360] range.