From 2920183e2ccdc1ff8d86781107d25befdde61830 Mon Sep 17 00:00:00 2001 From: kevin-thankyou-lin <33344633+kevin-thankyou-lin@users.noreply.github.com> Date: Wed, 6 Nov 2024 19:21:29 -0600 Subject: [PATCH] Remove choose_part_controller from input_utils.py --- robosuite/utils/input_utils.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/robosuite/utils/input_utils.py b/robosuite/utils/input_utils.py index 612be8d2d..a7f686032 100644 --- a/robosuite/utils/input_utils.py +++ b/robosuite/utils/input_utils.py @@ -67,35 +67,6 @@ def choose_controller(part_controllers=False): return controllers[k] -def choose_part_controller(): - """ - Prints out part controller options, and returns the requested part controller name - - Returns: - str: Chosen part controller name - """ - controllers = list(suite.ALL_PART_CONTROLLERS) - - # Select controller to use - print("Here is a list of part controllers in the suite:\n") - - for k, controller in enumerate(controllers): - print("[{}] {}".format(k, controller)) - print() - try: - s = input( - "Choose a part controller for the robot " + "(enter a number from 0 to {}): ".format(len(controllers) - 1) - ) - # parse input into a number within range - k = min(max(int(s), 0), len(controllers) - 1) - except: - k = 0 - print("Input is not valid. Use {} by default.".format(controllers)[k]) - - # Return chosen controller - return controllers[k] - - def choose_multi_arm_config(): """ Prints out multi-arm environment configuration options, and returns the requested config name