smarts.sstudio.sstypes.actor.traffic_actor module
- class smarts.sstudio.sstypes.actor.traffic_actor.TrafficActor(name: str, accel: float = 2.6, decel: float = 4.5, tau: float = 1.0, sigma: float = 0.5, depart_speed: float | str = 'max', emergency_decel: float = 4.5, speed: ~smarts.sstudio.sstypes.distribution.Distribution = Distribution(mean=1.0, sigma=0.1), imperfection: ~smarts.sstudio.sstypes.distribution.Distribution = Distribution(mean=0.5, sigma=0), min_gap: ~smarts.sstudio.sstypes.distribution.Distribution = Distribution(mean=2.5, sigma=0), max_speed: float = 55.5, vehicle_type: str = 'passenger', lane_changing_model: ~smarts.sstudio.sstypes.traffic_model.LaneChangingModel = <factory>, junction_model: ~smarts.sstudio.sstypes.traffic_model.JunctionModel = <factory>)[source]
Used as a description/spec for traffic actors (e.x. Vehicles, Pedestrians, etc). The defaults provided are for a car, but the name is not set to make it explicit that you actually want a car.
- accel: float = 2.6
The maximum acceleration value of the actor (in m/s^2).
- decel: float = 4.5
The maximum deceleration value of the actor (in m/s^2).
- depart_speed: float | str = 'max'
The starting speed of the actor
- emergency_decel: float = 4.5
maximum deceleration ability of vehicle in case of emergency
- property id: str
The identifier tag of the traffic actor.
- imperfection: Distribution = Distribution(mean=0.5, sigma=0)
Driver imperfection within range [0..1]
- junction_model: JunctionModel
- lane_changing_model: LaneChangingModel
- max_speed: float = 55.5
The vehicle’s maximum velocity (in m/s), defaults to 200 km/h for vehicles
- min_gap: Distribution = Distribution(mean=2.5, sigma=0)
Minimum gap (when standing) in meters.
- sigma: float = 0.5
The driver imperfection
- speed: Distribution = Distribution(mean=1.0, sigma=0.1)
The speed distribution of this actor in m/s.
- tau: float = 1.0
The minimum time headway
- vehicle_type: str = 'passenger'
The configured vehicle type this actor will perform as. (“passenger”, “bus”, “coach”, “truck”, “trailer”)