#!/usr/bin/env python

import rospy
from nav_msgs.msg import Odometry

def callback(msg):
	x = msg.pose.pose.position.x
	y = msg.pose.pose.position.y
	rospy.loginfo('x: {}, y: {}'.format(x,y))

def main():
	rospy.init_node('location_monitor')
	rospu.Subscriber("/odom", Odometry, callback)	
	rospy.spin()
	
id __name__ == '__main__':
	main()
