From 9fc6420d4ecd7763ab37a262d15d0fed2f946e58 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Thu, 2 Apr 2020 07:23:27 +0200 Subject: [PATCH] wifistrength: flush --- scripts/wifistrength.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/wifistrength.py b/scripts/wifistrength.py index 5d4e845..d8a989b 100755 --- a/scripts/wifistrength.py +++ b/scripts/wifistrength.py @@ -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) -- 2.39.5