From: Erik Andresen Date: Mon, 22 Oct 2018 19:41:29 +0000 (+0200) Subject: wifistrength: swap quotation marks X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=commitdiff_plain;h=refs%2Fheads%2F3dsensor wifistrength: swap quotation marks --- 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)