Closed vrodriguezf closed 11 months ago
Solved: they are just created in the main function before calling the AgentRunner
:
if __name__ == "__main__":
naive_agent = NaivePursuitAgent()
runner = AgentEnvRunner(
agent=naive_agent,
env_cls=PE1_E1_I3_Env,
env_kwargs=None,
runner_timeout=100, # agent runner that will timeout after 100 seconds
debug=True)
runner.run()
I see that the AgentEnvRunner constructor has a
env_
argument to pass kwargs to the environment, but, how to do the same with Agents? I mean, this kwargs:In the config file
example_agent_cfg.yaml
I see a way:but, afaik, that is supposed to be used only with the evaluation script.