#!/usr/bin/env python
#-*-coding: utf-* -*-

import rospy
from std_msgs.msg import String

def callback(data):
	rospy.loginfo(rospy.get_caller_id() + 'I heard %s',data.data)

def listener():
	rospy.init_node('listener',anonymous=True) #dinleyi dugumu olusturuk.
	rospy.Subscriber('chatter',String,callback) #dinlenilecek konu
	rospy.spin()
	
if __name__ == '__main__':
	listener()
