gym_os2r.models.config¶
- class gym_os2r.models.config.BaseConfig(yaml_path)¶
Bases:
object
Default config loads in the default configuration file. Allows the user to update the configuration as necessary.
- get_config(xpath)¶
gets value in the dictionary using xpath like formating. for example, ‘fixed_hip/spaces/observation/’ will access the fixed_hip observation space limits. This function is currently limited since it does not support * regex in the xpath.
- set_config(value, xpath)¶
Sets value in the dictionary using xpath like formating. for example, ‘fixed_hip/spaces/observation/’ will access the fixed_hip observatin space limits. This function is currently limited. It does no error handling or type enforcement. Furthermore, it does not support * regex in the xpath.
- class gym_os2r.models.config.RandomizerConfig(yaml_path='./default/randomizations.yaml')¶
Bases:
gym_os2r.models.config.BaseConfig
Config object for randomizer configuration file. Gives access in a way that is usable for the randomizer.
- get_randomizations()¶
- class gym_os2r.models.config.SettingsConfig(yaml_path='./default/settings.yaml')¶
Bases:
gym_os2r.models.config.BaseConfig
Config object for all environment settings. Loads default settings natively allows user to update the values (be careful… currently the user is given a lot of power here)