Package topo :: Package misc :: Module robotics :: Class PTZ
[hide private]
[frames] | no frames]

Class PTZ

source code


Pan/Tilt/Zoom control.

This event processor takes input events on its 'Saccade' input port in the form of (amplitude,direction) saccade commands (as produced by the topo.sheet.saccade.SaccadeController class) and appropriately servoes the attached PTZ object. There is not currently any dynamic zoom control, though the static zoom level can be set as a parameter.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
start(self)
Called by the simulation when the EventProcessor is added to the simulation.
source code
 
input_event(self, conn, data)
Called by the simulation when an EPConnectionEvent is delivered; the EventProcessor should process the data somehow.
source code
 
shift(self, amplitude, direction) source code

Inherited from base.simulation.EventProcessor: __init__, process_current_time, script_repr, send_output

Inherited from param.parameterized.Parameterized: __getstate__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  ptz = param.ClassSelector(PTZDevice, default= None, doc= ...
  zoom = param.Number(default= 120, bounds= (0, None), doc= ...
  speed = param.Number(default= 200, bounds= (0, None), doc= ...
  invert_amplitude = param.Boolean(default= False, doc= ...
  dest_ports = ["Saccade"]
list() -> new list list(sequence) -> new list initialized from sequence's items
  src_ports = ["State"]
list() -> new list list(sequence) -> new list initialized from sequence's items

Inherited from base.simulation.EventProcessor: name

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

start(self)

source code 

Called by the simulation when the EventProcessor is added to the simulation.

If an EventProcessor needs to have any code run when it is added to the simulation, the code can be put into this method in the subclass.

Overrides: base.simulation.EventProcessor.start
(inherited documentation)

input_event(self, conn, data)

source code 
Called by the simulation when an EPConnectionEvent is delivered; the EventProcessor should process the data somehow.
Overrides: base.simulation.EventProcessor.input_event
(inherited documentation)

Class Variable Details [hide private]

ptz

Value:
param.ClassSelector(PTZDevice, default= None, doc= """
       An instance of playerrobot.PTZDevice to be controlled.""")

zoom

Value:
param.Number(default= 120, bounds= (0, None), doc= """
       Desired FOV width in degrees.""")

speed

Value:
param.Number(default= 200, bounds= (0, None), doc= """
       Desired max pan/tilt speed in deg/sec.""")

invert_amplitude

Value:
param.Boolean(default= False, doc= """
       Invert the sense of the amplitude signal, in order to get the
       appropriate ipsi-/contralateral sense of saccades.""")