From 87952e2a4470c6eaafa5e610bac1d71bdb8d73ea Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Mon, 22 Oct 2018 21:41:29 +0200 Subject: [PATCH] wifistrength: swap quotation marks --- scripts/wifistrength.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wifistrength.py b/scripts/wifistrength.py index 496c7b2..5d4e845 100755 --- a/scripts/wifistrength.py +++ b/scripts/wifistrength.py @@ -21,5 +21,5 @@ while not rospy.is_shutdown(): if match_lq is not None: 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) + print '{"x":%.2f, "y":%.2f, "link":%.2f},' % (pos.transform.translation.x, pos.transform.translation.y, lq) sleep(0.5) -- 2.39.2