apollo icon indicating copy to clipboard operation
apollo copied to clipboard

What is the difference between GetRoadWidth and GetLaneWidth in reference_line.cc?

Open dajiba6 opened this issue 1 year ago • 1 comments

what do lane and road refer to?

dajiba6 avatar May 24 '24 03:05 dajiba6

I think you can check out map_road.proto and map_lane.proto to understand what each refers to. Seems like a road contains 1 or more lanes.

// The road is a collection of traffic elements, such as lanes, road boundary
// etc.
// It provides general information about the road.
message Road {
  optional Id id = 1;
  repeated RoadSection section = 2;
  ...
}

// A lane is part of a roadway, that is designated for use by a single line of
// vehicles.
// Most public roads (include highways) have more than two lanes.
message Lane {
  optional Id id = 1;
  ...
}

YuqiHuai avatar May 24 '24 05:05 YuqiHuai