amaze.simu.controllers.base

Classes

BaseController(robot_data)

class amaze.simu.controllers.base.BaseController(robot_data: BuildData)[source]
infos: dict = {}

Generic storage for additional information.

For instance the class of mazes this agent should solve.

abstract static inputs_types() List[InputType][source]

Specify what kind of inputs this controller can handle.

Abstract method that should be implemented and documented.

abstract static outputs_types() List[OutputType][source]

Specify what kind of outputs this controller can handle.

Abstract method that should be implemented and documented.

_save_to_archive(
archive: ZipFile,
*args,
**kwargs,
) bool[source]

Re-implement to save derived-specific content to the archive

classmethod _load_from_archive(
archive: ZipFile,
robot: BuildData,
*args,
**kwargs,
) BaseController[source]

Re-implement to load derived-specific content from the archive.

static assert_equal(
lhs: BaseController,
rhs: BaseController,
) bool[source]

Re-implement for savable controllers to test for successful roundtrip

save(*args, **kwargs) Path[source]

Easy access to global save function

See also

~amaze.simu.controllers.control.save

classmethod load(*args, **kwargs)[source]

Easy access to global load function

See also

~amaze.simu.controllers.control.load