PyRobot World Instance

class pyrobot.core.World(config_name=None, configs_path=None, overrides=[])[source]

Bases: object

Root class for four types or modules: robots, sensors, algorithms, and objects (obstacles), each being a dictionary of robot/sensors/algorithms/object instances. All of these instances can be queried by self.robots/sensors/algorithms/objectsp[“label”]

__init__(config_name=None, configs_path=None, overrides=[])[source]

Constructor for World object.

Parameters
  • configs_name – file name for the config file correspond to the world object. Type: str

  • configs_path – folder path for the config file correspond to the world object. If None, default to be {$pyrobot-root}/src/pyrobot/hydra_config. Type: str

  • overrides – a list of override commands. Details described in: https://hydra.cc/docs/next/experimental/compose_api/#internaldocs-banner. Type: list[str].