]> defiant.homedns.org Git - ros_wild_thumper.git/commitdiff
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 496c7b25ca5952392eba3aa485af2e81bbc29cfd..5d4e84541bd1b64306d5e0a5c7b6cbc0b3c261a5 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))
-                       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)