From 489ba664f0cd9f4101f59263a9adf60933bcd356 Mon Sep 17 00:00:00 2001 From: Daniel Mata Date: Mon, 30 Jan 2023 15:11:38 +0000 Subject: [PATCH] Logical lanes: add road type The road type is useful since the speed limit can depend on the underlying type of the road. It is also helpful to display a road in a navigation system, because typically different road types are displayed differently. The road type is added to the logical lanes, since the road type information will come from the underlying map and most map formats are more similar to logical lanes than to physical lanes. Signed-off-by: Daniel Mata --- osi_logicallane.proto | 70 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/osi_logicallane.proto b/osi_logicallane.proto index a0c28f602..de28af3a2 100644 --- a/osi_logicallane.proto +++ b/osi_logicallane.proto @@ -582,6 +582,10 @@ message LogicalLane // repeated LaneConnection successor_lane = 15; + // The road type of the logical lane. + // + optional RoadType road_type = 16; + // // Definition of available lane types. // @@ -692,6 +696,72 @@ message LogicalLane TYPE_TRAM = 18; } + // + // Definition of available road types. + // + // The road types are aligned with OpenDRIVE and describe the type of a + // higher structure that spans one or multiple logical lanes. + // + enum RoadType{ + // Lane of unknown type. Do not use in ground truth. + // + ROAD_TYPE_UNKNOWN = 0; + + // Any other type of road. + // + ROAD_TYPE_OTHER = 1; + + // A road designated to accomodate multiple road users, + // such as pedestrian and cyclist. + // + ROAD_TYPE_LOWSPEED = 2; + + // A road specially built for fast travel over long distances. + // + ROAD_TYPE_MOTORWAY = 3; + + // A pedestrian exclusive road. + // + ROAD_TYPE_PEDESTRIAN = 4; + + // A country road which is often narrow and unpaved. + // + ROAD_TYPE_RURAL = 5; + + // A high capacity urban road. + // + ROAD_TYPE_TOWNARTERIAL = 6; + + // An auxiliary road to direct traffic from the residential areas + // to the arterial roads. + // + ROAD_TYPE_TOWNCOLLECTOR = 7; + + // A motor vehicle exclusive road designed to connect highways with urban areas. + // + ROAD_TYPE_TOWNEXPRESSWAY = 8; + + // A road intended to serve residential areas. + // + ROAD_TYPE_TOWNLOCAL = 9; + + // A street that is closed to through traffic and is designated for children's play activities. + // + ROAD_TYPE_TOWNPLAYSTREET = 10; + + // A town road which is part of a private property. + // + ROAD_TYPE_TOWNPRIVATE = 11; + + // A regular town road. + // + ROAD_TYPE_TOWN = 12; + + // A road that is designated for cyclists. + // + ROAD_TYPE_BICYCLE = 13; + } + // // \brief Reference to a physical lane. //