#!/usr/bin/env python

import rospy
from std_msgs.msg import String
import serial

#ser = serial.Serial('/dev/ttyAMA0', 9600)
rospy.init_node('tocm', anonymous=True)

def callback(data):
    #ser.write(data)
    rospy.loginfo(data.data)

if __name__ == '__main__':
    rospy.Subscriber("link2", String, callback)
    rospy.spin()

bd329683bd155e3a13416725a8554c28a3a3357c
<mask token>

<mask token>


def callback(data):
    rospy.loginfo(data.data)


<mask token>

<mask token>
rospy.init_node('tocm', anonymous=True)


def callback(data):
    rospy.loginfo(data.data)


if __name__ == '__main__':
    rospy.Subscriber('link2', String, callback)
    rospy.spin()

import rospy
from std_msgs.msg import String
import serial
rospy.init_node('tocm', anonymous=True)


def callback(data):
    rospy.loginfo(data.data)


if __name__ == '__main__':
    rospy.Subscriber('link2', String, callback)
    rospy.spin()

#!/usr/bin/env python

import rospy
from std_msgs.msg import String
import serial

#ser = serial.Serial('/dev/ttyAMA0', 9600)
rospy.init_node('tocm', anonymous=True)

def callback(data):
    #ser.write(data)
    rospy.loginfo(data.data)

if __name__ == '__main__':
    rospy.Subscriber("link2", String, callback)
    rospy.spin()
