Skip to content

Commit 02d086a

Browse files
Fabian Pfeufferpmai
Fabian Pfeuffer
authored andcommitted
Concretize documentation of route segments
Signed-off-by: Fabian Pfeuffer <[email protected]>
1 parent 2db24fb commit 02d086a

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

osi_route.proto

+22-7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ message Route
5353
//
5454
// \brief A segment of a logical lane.
5555
//
56+
// \note The #LogicalLaneSegment allows that #start_s > #end_s.
57+
// If #start_s < #end_s, then the traffic agent should traverse the
58+
// segment in the logical lane's reference line definition direction.
59+
// If #end_s > #start_s, then the traffic agent should traverse the
60+
// segment in the opposite of the logical lane's reference line
61+
// definition direction.
62+
//
5663
message LogicalLaneSegment
5764
{
5865
// The ID of the logical lane this segment belongs to.
@@ -76,15 +83,23 @@ message Route
7683
// \brief A segment of a route.
7784
//
7885
// A route segment describes a segment of a traffic agent's route through the
79-
// road network. The route segment is composed of a list of logical lanes
80-
// segments that indicate the agent which logical lanes it should use in a
81-
// given interval, so that it will eventually reach its destination.
82-
// In general, only lanes should be listed that are parallel to each
83-
// other, though some may have different lengths (e.g. if a lane widening
86+
// logical lanes of the road network.
87+
//
88+
// Each time there is a successor-predecessor relation between the logical
89+
// lanes along the route (i.e. a logical lane ends, and is continued by another
90+
// logical lane, e.g. at a junction border), a new #RouteSegment starts. The
91+
// #RouteSegment then lists the logical lane segments that can be used to
92+
// travel through this space of the road.
93+
//
94+
// Together, the listed logical lane segments should form a continuous area,
95+
// where the traffic agent can move freely. These will mostly be parallel
96+
// lanes, though lanes may overlap (e.g. if one lane splits into two on a
97+
// junction). In general, the logical lane segments in a #RouteSegment will
98+
// have the same length, though there are exceptions (e.g. if a lane widening
8499
// occurs, the newly appearing lane will have a shorter length).
85100
//
86101
// Typically a route segment will be either
87-
// - a set of lanes between two junctions, or
102+
// - a set of parallel lanes between two junctions, or
88103
// - parallel lanes on an intersection with the same driving direction
89104
//
90105
// ## Example
@@ -113,7 +128,7 @@ message Route
113128
//
114129
// The logical lane segments of a route segment should be connected without
115130
// gaps, meaning that, together, the lane segments should form a
116-
// continous area.
131+
// continuous area.
117132
//
118133
repeated LogicalLaneSegment lane_segment = 1;
119134

0 commit comments

Comments
 (0)