wifistrength: swap quotation marks 3dsensor
authorErik Andresen <erik@vontaene.de>
Mon, 22 Oct 2018 19:41:29 +0000 (21:41 +0200)
committerErik Andresen <erik@vontaene.de>
Mon, 22 Oct 2018 19:41:29 +0000 (21:41 +0200)
scripts/wifistrength.py

index 496c7b2..5d4e845 100755 (executable)
@@ -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))
                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)
                        sleep(0.5)