simulation.utils.road.sections.zebra_crossing module

ZebraCrossing.

Summary

Classes:

ZebraCrossing

Road section representing a zebra crossing.

Reference

class ZebraCrossing(id: int = 0, transform: Optional[simulation.utils.geometry.transform.Transform] = None, is_start: bool = False, left_line_marking: str = 'solid', middle_line_marking: str = 'dashed', right_line_marking: str = 'solid', obstacles: List[simulation.utils.road.sections.obstacle.StaticObstacle] = <factory>, traffic_signs: List[simulation.utils.road.sections.traffic_sign.TrafficSign] = <factory>, surface_markings: List[simulation.utils.road.sections.surface_marking.SurfaceMarking] = <factory>, length: float = 0.45)[source]

Bases: simulation.utils.road.sections.straight_road.StraightRoad

Road section representing a zebra crossing.

Parameters

length (float) – length of the crossing and thus the section.

TYPE = 6
length: float = 0.45
property frame

Frame for the zebra crossing surface marking.

Type

Polygon

property traffic_signs

All traffic signs within this section of the road.

Type

List[TrafficSign]