Esempio n. 1
0
  def __init__(self, node, name = "ROSCameraImage", topic = "image_color",
      sensor = None, orientation = [-90, -90, 0], **kargs):
    ROSImage.__init__(self, node, name = name, topic = topic,
      image = panda.PNMImage(), parent = sensor, orientation = orientation,
      **kargs)

    self.sensor = sensor
Esempio n. 2
0
 def __init__(self, node, name="ROSCapture", topic="image_color", **kargs):
     ROSImage.__init__(self,
                       node,
                       name=name,
                       topic=topic,
                       image=panda.PNMImage(),
                       parent=framework.base.camera,
                       **kargs)
Esempio n. 3
0
    def __init__(self,
                 node,
                 name="ROSCameraImage",
                 topic="image_color",
                 sensor=None,
                 orientation=[-90, -90, 0],
                 **kargs):
        ROSImage.__init__(self,
                          node,
                          name=name,
                          topic=topic,
                          image=panda.PNMImage(),
                          parent=sensor,
                          orientation=orientation,
                          **kargs)

        self.sensor = sensor
Esempio n. 4
0
 def outputData(self, time):
     self.image = self.sensor.sensor.getImage()
     ROSImage.outputData(self, self.sensor.sensor.getTimestamp())
Esempio n. 5
0
 def outputData(self, time):
     framework.window.getScreenshot(self.image)
     ROSImage.outputData(self, time)
Esempio n. 6
0
 def __init__(self, node, name = "ROSCapture", topic = "image_color",
     **kargs):
   ROSImage.__init__(self, node, name = name, topic = topic,
     image = panda.PNMImage(), parent = framework.base.camera, **kargs)
Esempio n. 7
0
 def outputData(self, time):
   framework.window.getScreenshot(self.image)
   ROSImage.outputData(self, time)
Esempio n. 8
0
 def outputData(self, time):
   self.image = self.sensor.sensor.getImage()
   ROSImage.outputData(self, self.sensor.sensor.getTimestamp())