class documentation

class Traffic__Density(NumberData):

View In Hierarchy

Density of the traffic on the road section the vehicle is currently on.

The density of the traffic is the number of vehicles with the center of their bounding box within a 50m range before and after the vehicle containing this attribute.

The vehicle containing this attribute is counted as well.

Class Variable name Is always 'traffic/density'
Class Variable type Is always 'value'
Class Variable val Number of vehicles
name: Literal['traffic/density'] =

Is always 'traffic/density'

type: Literal[NumberType.Value] =

Is always 'value'

val: float =

Number of vehicles