simulation.utils.road.sections.traffic_island module¶
TrafficIsland.
Reference¶
-
class
TrafficIsland(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>, island_width: float = 0.3, zebra_length: float = 0.45, curve_area_length: float = 0.8, curvature: float = 0.4, zebra_marking_type: int = 1, _sign_distance: float = 0.3)[source]¶ Bases:
simulation.utils.road.sections.road_section.RoadSectionRoad section representing an traffic island.
- Parameters
island_width (float) – width of the island in the middle
zebra_length (float) – length of zebra section on the island
curve_area_length (float) – length of curve area section
curvature (float) – amount of curvature ranging from 0 to 1
zebra_marking_type (int) – marking on the middle of the island
-
TYPE= 9¶
-
LINES= 0¶ Possible value for
zebra_marking_type. Show lines on the island.
-
ZEBRA= 1¶ Possible value for
zebra_marking_type. Show zebra crossing on the island.
-
island_width: float = 0.3¶ Width of island in the middle.
-
zebra_length: float = 0.45¶ Length of the zebra crossing area.
-
curve_area_length: float = 0.8¶ Length of the bezier curve area at start and end of island.
-
curvature: float = 0.4¶ Define where along the curve area the control points are located.
-
zebra_marking_type: int = 1¶ Type of zebra marking type. Can be LINES or ZEBRA.
-
_sign_distance: float = 0.3¶ Distance of the directions signs from the mid island part.
-
property
length¶ Length of the entire section.
-
property
middle_start¶
-
property
middle_r_zebra_start¶
-
property
middle_r_zebra_end¶
-
property
middle_end¶
-
property
right_zebra_start¶
-
property
right_zebra_end¶
-
property
left_zebra_start¶
-
property
left_zebra_end¶
-
property
middle_l_zebra_start¶
-
property
middle_l_zebra_end¶
-
property
bezier_points_mid_r_start¶
-
property
bezier_points_mid_r_end¶
-
property
bezier_points_mid_l_start¶
-
property
bezier_points_mid_l_end¶
-
property
lines¶ All road lines with their marking type.
- Type
List[MarkedLine]
-
property
traffic_signs¶ All traffic signs within this section of the road.
- Type
List[TrafficSign]
-
property
surface_markings¶ All surface markings within this section of the road.
- Type
List[SurfaceMarking]