def human_prediction(choice): rospy.loginfo("human predict "+choice) msg = String() msg.data = choice pub_human_prediction.publish(msg)