Exemplo n.º 1
0
class EuropaLaser(Output):
  def __init__(self, client = None, message = None, sensor = None,
      flip = False, **kargs):
    super(EuropaLaser, self).__init__(**kargs)

    self.client = client
    self.sensor = sensor
    self.message = message
    self.flip = flip

    self.publisher = CEuropaLaser("CEuropaLaser", self.client.client,
      self.sensor.sensor, self.message)
    self.publisher.reparentTo(self)

#-------------------------------------------------------------------------------

  def outputData(self, time):
    self.publisher.publish(time, self.flip)
Exemplo n.º 2
0
  def __init__(self, client = None, message = None, sensor = None,
      flip = False, **kargs):
    super(EuropaLaser, self).__init__(**kargs)

    self.client = client
    self.sensor = sensor
    self.message = message
    self.flip = flip

    self.publisher = CEuropaLaser("CEuropaLaser", self.client.client,
      self.sensor.sensor, self.message)
    self.publisher.reparentTo(self)