]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - scripts/wifistrength.py
path_following: Fix printf
[ros_wild_thumper.git] / 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)