swarmsim#
This is the root swarmsim module.
See the API Reference for a description of the layout of this module.
Most code in the package is organized into submodules, but some commonly used functions and classes are available directly in the root module. This page lists those.
Functions#
|
Decorate a config dataclass to add an |
Decorate a dataclass to filter out unexpected fields |
|
|
Register an agent class with the config system |
|
Register a world class with the config system |
Register a new namespace for classes configured using dicts |
|
|
Register a class for a given namespace |
Create a world config dataclass from a dict. |
|
|
Load a YAML file or template and return a config object. |
Load a YAML string or stream and return a config object. |
|
|
Returns a new world instance from the given config. |
|
Classes#
|
Base world class. |
|
|
|
|
|
Config dataclass for a RectangularWorld. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Given agent observations, return agent actions |
|
Spawner: An abstract object creator |
|
|
|
|
|
Functions in this module#
Functions
Prints the versions of the operating system and Python. |
Modules