def talker():
    global sock
    rospy.init_node('mocap_2_udp', anonymous=True)
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    rospy.Subscriber(topic, PoseStamped, callback)
    rospy.spin()
def talker():
    global sock
    rospy.init_node('mocap_2_udp', anonymous=True)
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    rospy.Subscriber(topic, PoseStamped, callback)
    rospy.spin()