From 806e90075d719b5744e5d535663280b54973a408 Mon Sep 17 00:00:00 2001 From: Daniel Mata Date: Mon, 30 Jan 2023 15:11:38 +0000 Subject: [PATCH 1/2] Add road type based on OpenDRIVE to logical lanes The road type is useful since traffic participant models might want to influence their behavior based on the type of road that they are driving on, or make decisions in terms of navigation based on that information. It is also helpful to display a road in a navigation system, as typically different road types are displayed differently. Signed-off-by: Daniel Mata --- osi_logicallane.proto | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/osi_logicallane.proto b/osi_logicallane.proto index 0e86d728e..61338b8bc 100644 --- a/osi_logicallane.proto +++ b/osi_logicallane.proto @@ -589,6 +589,10 @@ message LogicalLane // repeated TrafficRule traffic_rule = 17; + // The road type of the logical lane. + // + optional RoadType road_type = 18; + // // Definition of available lane types. // @@ -951,5 +955,73 @@ message LogicalLane } } + // + // 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; + } } From f3d48fc8c27dda421706fd54c4339d3e8499bbaf Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Thu, 27 Nov 2025 11:00:35 +0100 Subject: [PATCH 2/2] Fix spelling of accommodate Signed-off-by: Pierre R. Mai --- osi_logicallane.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osi_logicallane.proto b/osi_logicallane.proto index 61338b8bc..cca8a268e 100644 --- a/osi_logicallane.proto +++ b/osi_logicallane.proto @@ -971,7 +971,7 @@ message LogicalLane // ROAD_TYPE_OTHER = 1; - // A road designated to accomodate multiple road users, + // A road designated to accommodate multiple road users, // such as pedestrian and cyclist. // ROAD_TYPE_LOWSPEED = 2;