Lane¶
- class py123d.datatypes.Lane[source]¶
Class representing a lane in a map.
Public Data Attributes:
layerThe
MapLayerof the map object.lane_typeThe type of the lane, according to
LaneType.lane_group_idID of the lane group this lane belongs to, or None if not assigned.
lane_groupThe
LaneGroupthis lane belongs to.left_boundaryThe left boundary of the lane, either
Polyline2DorPolyline3D.left_boundary_2dThe left boundary of the lane as
Polyline2D.left_boundary_3dThe left boundary of the lane as
Polyline3D(zero-padded if necessary).right_boundaryThe right boundary of the lane, either
Polyline2DorPolyline3D.right_boundary_2dThe right boundary of the lane as
Polyline2D.right_boundary_3dThe right boundary of the lane as
Polyline3D(zero-padded if necessary).centerlineThe centerline of the lane, either
Polyline2DorPolyline3D.centerline_2dThe centerline of the lane as
Polyline2D.centerline_3dThe centerline of the lane as
Polyline3D(zero-padded if necessary).left_lane_idID of the left neighboring lane.
left_laneThe left neighboring
Lane, if available.right_lane_idID of the right neighboring lane.
right_laneThe right neighboring
Lane, if available.predecessor_idsList of IDs of the predecessor lanes.
predecessorsList of predecessor
Laneinstances.successor_idsList of IDs of the successor lanes.
successorsList of successor
Laneinstances.speed_limit_mpsThe speed limit of the lane in meters per second.
trimesh_meshThe trimesh mesh representation of the lane.
Inherited from
BaseMapSurfaceObjectoutlineThe outline of the surface as either
Polyline2DorPolyline3D.outline_2dThe outline of the surface as
Polyline2D.outline_3dThe outline of the surface as
Polyline3D(zero-padded to 3D if necessary).shapely_polygonThe shapely polygon of the surface.
trimesh_meshThe trimesh mesh representation of the surface.
Inherited from
BaseMapObjectobject_idThe unique identifier of the map object (unique within a map layer).
layerThe
MapLayerof the map object.
- property lane_group_id: str | int | None¶
ID of the lane group this lane belongs to, or None if not assigned.
- property left_boundary: Polyline2D | Polyline3D¶
The left boundary of the lane, either
Polyline2DorPolyline3D.
- property left_boundary_2d: Polyline2D¶
The left boundary of the lane as
Polyline2D.
- property left_boundary_3d: Polyline3D¶
The left boundary of the lane as
Polyline3D(zero-padded if necessary).
- property right_boundary: Polyline2D | Polyline3D¶
The right boundary of the lane, either
Polyline2DorPolyline3D.
- property right_boundary_2d: Polyline2D¶
The right boundary of the lane as
Polyline2D.
- property right_boundary_3d: Polyline3D¶
The right boundary of the lane as
Polyline3D(zero-padded if necessary).
- property centerline: Polyline2D | Polyline3D¶
The centerline of the lane, either
Polyline2DorPolyline3D.
- property centerline_2d: Polyline2D¶
The centerline of the lane as
Polyline2D.
- property centerline_3d: Polyline3D¶
The centerline of the lane as
Polyline3D(zero-padded if necessary).
- property trimesh_mesh: Trimesh¶
The trimesh mesh representation of the lane.
- property outline: Polyline2D | Polyline3D¶
The outline of the surface as either
Polyline2DorPolyline3D.
- property outline_2d: Polyline2D¶
The outline of the surface as
Polyline2D.
- property outline_3d: Polyline3D¶
The outline of the surface as
Polyline3D(zero-padded to 3D if necessary).
- property shapely_polygon: Polygon¶
The shapely polygon of the surface.
- class py123d.datatypes.LaneType[source]¶
Enum for different lane types.
Notes
The lane types follow the Waymo specification [1].
References
- UNDEFINED = 0¶
Undefined lane type.
- FREEWAY = 1¶
Freeway lane type.
- SURFACE_STREET = 2¶
Surface street lane type, i.e. regular lanes for vehicles.
- BIKE_LANE = 3¶
Bike lane type.
- BUS_LANE = 4¶
Bus lane type.