Observation Functions

To create a new observation function, you must create a class that inherits from the ObservationFunction class:

class sumo_rl.environment.observations.ObservationFunction(ts: TrafficSignal)

Abstract base class for observation functions.

abstract observation_space()

Subclasses must override this method.

The default observation function is the DefaultObservationFunction class:

class sumo_rl.environment.observations.DefaultObservationFunction(ts: TrafficSignal)

Default observation function for traffic signals.

observation_space() Box

Return the observation space.