def str_pub(word): rospy.loginfo("Pub --> {}".format(word)) st = String() st.data = word[::-1] return st