mlpy.environments.utils.webots.client.WebotsClient.reset

WebotsClient.reset(host='127.0.0.1', port=12345, retry_timeout=2)[source]

Reset the environment and all agents.

A request is send to the controller to reset the environment. Once the environment is reset all agents acting in the environment are reset.

Parameters:

host : str, optional

The host the controller listens to. Default is 127.0.0.1

port : int, optional

The port the controller listens to. If using the client in conjunction with controller serverc the port number is 12345. Default is 12345.

retry_timeout: int, optional

The time before retrying to connect in seconds. Default is 2.