X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=scripts%2Fwifistrength.py;h=5d4e84541bd1b64306d5e0a5c7b6cbc0b3c261a5;hp=496c7b25ca5952392eba3aa485af2e81bbc29cfd;hb=fcd5dd64d2a7538ff45c41ad3c08c627a59598b9;hpb=cf1ec643629b1b2f3d33ab67ce4851714c02bf5a 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)