Skip to content

Commit

Permalink
Remove choose_part_controller from input_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-thankyou-lin authored Nov 7, 2024
1 parent edffa09 commit 2920183
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions robosuite/utils/input_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2920183

Please sign in to comment.