def human_choice(choice): rospy.loginfo("human choice "+choice) msg = String() msg.data = choice pub_human_choice.publish(msg)