示例#1
0
class ROSImage(ROSOutput):
  def __init__(self, node, name = "ROSImage", topic = "image_color",
      image = None, **kargs):
    ROSOutput.__init__(self, node, name = name, topic = topic, **kargs)

    self.image = image

    self.publisher = CROSImage(name, self.node.node, self.topic,
      self.queueSize)
    self.publisher.reparentTo(self)

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

  def outputData(self, time):
    if self.image:
      self.publish(time, self.frame, self.image)
示例#2
0
  def __init__(self, node, name = "ROSImage", topic = "image_color",
      image = None, **kargs):
    ROSOutput.__init__(self, node, name = name, topic = topic, **kargs)

    self.image = image

    self.publisher = CROSImage(name, self.node.node, self.topic,
      self.queueSize)
    self.publisher.reparentTo(self)
示例#3
0
class ROSImage(ROSOutput):
    def __init__(self,
                 node,
                 name="ROSImage",
                 topic="image_color",
                 image=None,
                 **kargs):
        ROSOutput.__init__(self, node, name=name, topic=topic, **kargs)

        self.image = image

        self.publisher = CROSImage(name, self.node.node, self.topic,
                                   self.queueSize)
        self.publisher.reparentTo(self)


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

    def outputData(self, time):
        if self.image:
            self.publish(time, self.frame, self.image)
示例#4
0
    def __init__(self,
                 node,
                 name="ROSImage",
                 topic="image_color",
                 image=None,
                 **kargs):
        ROSOutput.__init__(self, node, name=name, topic=topic, **kargs)

        self.image = image

        self.publisher = CROSImage(name, self.node.node, self.topic,
                                   self.queueSize)
        self.publisher.reparentTo(self)