Controller
Controller trait defines the interface for a Reinforcement Learning controller.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Type members
Types
The type of the image used for rendering the simulation on the RL client.
The type of the image used for rendering the simulation on the RL client.
Attributes
Value members
Abstract methods
Initializes the controller with the given simulation configuration.
Initializes the controller with the given simulation configuration.
Value parameters
- config
-
the simulation configuration to initialize the controller.
Attributes
The initial state of the controller.
The initial state of the controller.
Attributes
Renders the current state of the simulation to an image for the RL client.
Renders the current state of the simulation to an image for the RL client.
Value parameters
- height
-
the height of the rendered image.
- width
-
the width of the rendered image.
Attributes
- Returns
-
an image representing the current state of the simulation.
Resets the controller to its initial state using the provided random number generator.
Resets the controller to its initial state using the provided random number generator.
Value parameters
- rng
-
the random number generator to use for reproducibility in the next run.
Attributes
The current state of the controller.
The current state of the controller.
Attributes
Performs a simulation step using the provided actions for each agent.
Performs a simulation step using the provided actions for each agent.
Value parameters
- actions
-
a map of agents to their corresponding actions to be performed in this step.
Attributes
- Returns
-
a response containing the results of the simulation step.