def point(robot_choice): msg = String() msg.data = robot_choice; rospy.loginfo("robot_choice "+robot_choice) pub_robot_point.publish(msg)