示例#1
0
    def __init__(self, topic):
        self.topic = topic
        self.data = Float()
        self.sub = None
        self.lock = threading.Lock()

        self.start()
示例#2
0
    def __init__(self, topic):
        self.topic = topic
        self.point = Float()
        self.pub = rospy.Publisher(self.topic, Float, queue_size=10)
        rospy.init_node("PlotPoint")
        self.lock = threading.Lock()

        self.kill_event = threading.Event()
        self.thread = ThreadPublisher(self, self.kill_event)

        self.thread.daemon = True
        self.start()
示例#3
0
 def create_float(self, val):
     fl = Float()
     fl.data = val
     return fl
示例#4
0
    def create_float(self, val):

        #		rospy.logdebug("In Bridge:create_float")
        fl = Float()
        fl.data = val
        return fl