]> defiant.homedns.org Git - ros_wild_thumper.git/commitdiff
wifistrength: flush
authorErik Andresen <erik@vontaene.de>
Thu, 2 Apr 2020 05:23:27 +0000 (07:23 +0200)
committerErik Andresen <erik@vontaene.de>
Thu, 2 Apr 2020 05:23:27 +0000 (07:23 +0200)
scripts/wifistrength.py

index 5d4e84541bd1b64306d5e0a5c7b6cbc0b3c261a5..d8a989bbf4cae5eab91e7ea4217bbb3dea3552ef 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-15 -*-
 
+import sys
 import os
 import re
 import rospy
@@ -22,4 +23,5 @@ while not rospy.is_shutdown():
                        lq = float(match_lq.group(1)) / float(match_lq.group(2))
                        pos = tfBuffer.lookup_transform("map", 'base_link', rospy.Time(0), rospy.Duration(1.0))
                        print '{"x":%.2f, "y":%.2f, "link":%.2f},' % (pos.transform.translation.x, pos.transform.translation.y, lq)
+                       sys.stdout.flush()
                        sleep(0.5)