def robot_inference_server(): rospy.init_node('robot_inference_server') s = rospy.Service('inference', Inference, handle) print ("Ready to infer robot behavior.") rospy.spin()