amaze.simu.controllers.control

Functions

builtin_controllers()

Provides the list of controllers shipped with this library

controller_factory(c_type, c_data)

Create a controller of a given c_type from the given c_data

load(path, *args, **kwargs)

Loads a controller from the provided path.

save(controller, path[, infos])

Save the controller under the provided path

amaze.simu.controllers.control.builtin_controllers()[source]

Provides the list of controllers shipped with this library

amaze.simu.controllers.control.controller_factory(c_type: str, c_data: dict)[source]

Create a controller of a given c_type from the given c_data

amaze.simu.controllers.control.save(
controller: BaseController,
path: Path | str,
infos: dict | None = None,
*args,
**kwargs,
) Path[source]

Save the controller under the provided path

Optionally store the provided information for latter reference (e.g. type of mazes, performance, …) Additional arguments are forwarded to the controller’s _save_to_archive()

amaze.simu.controllers.control.load(path: Path | str, *args, **kwargs)[source]

Loads a controller from the provided path.

Handles any type currently registered. When using extensions, make sure to load (import) all those used during training.