robot_control_example
Example script demo'ing robot control.
Options for random actions, as well as selection of robot action space
choose_controllers(robot, random_selection=False)
For a given robot, iterates over all components of the robot, and returns the requested controller type for each component.
:param robot: BaseRobot, robot class from which to infer relevant valid controller options :param random_selection: bool, if the selection is random (for automatic demo execution). Default False
:return dict: Mapping from individual robot component (e.g.: base, arm, etc.) to selected controller names
Source code in omnigibson/examples/robots/robot_control_example.py
main(random_selection=False, headless=False, short_exec=False)
Robot control demo with selection Queries the user to select a robot, the controllers, a scene and a type of input (random actions or teleop)