Town10HD_Opt lanelet2_map.osm has no Autoware semantics: no turn_direction, no regulatory elements, untyped boundaries

#2
by hakuturu583 - opened
The Autoware Foundation org

Summary

autoware_maps/Town10HD_Opt/lanelet2_map.osm is geometry-only. It describes lane boundaries and lane adjacency, but carries none of the semantic annotation Autoware's planning modules read: no turn_direction, no regulatory elements (traffic lights, stop lines), and no types on the lane boundary linestrings.

Checked at splatsim (6e3105d6709008a32cffcdf235ebc2410377275c) and on main (682ddd48b4cf305507646cb2f2e563bbedac4c2e) — both hold the same 2,248,269-byte file.

What the file actually contains

element count tags present
<node> 9,214 local_x, local_y, ele
<way> 279 none at all
<relation> 168 type=lanelet, subtype=road — identical on all 168

Relation members are left / right only, and there are zero regulatory-element relations. So the only distinct tag keys anywhere in the 2.1 MB file are local_x, local_y, ele, type, subtype.

The file header reads:

<!--generated on 2020-07-30 11:16:49 by lanelet2_map.pyc-->

which suggests it is raw output of the CARLA → Lanelet2 converter, before any Autoware annotation pass.

Why this matters

Anything that selects lanelets by meaning silently matches nothing. Evaluating the standard Autoware/CARLA lanelet predicates against this map with lanelet2 + a RoutingGraph (Germany / Vehicle traffic rules):

predicate matches
has a turn_direction tag (junction lanelet) 0 / 168
has a stop line 0 / 168
has a traffic-light stop line 0 / 168
has an adjacent same-direction lane (left or right) 0 / 168
2-D centerline length ≥ 10 m 156 / 168

The first three are 0 because the tags and regulatory elements simply are not there. The fourth is 0 for a related reason: the boundary linestrings carry no type/subtype, so the traffic rules cannot decide whether a lane change is permitted, and RoutingGraph::left()/right() return nothing for every lanelet. Longitudinal connectivity (following()/previous()) does work, since that comes from shared boundary geometry.

The practical effect is that a scenario or tool cannot express "spawn at a junction", "stop at the traffic light ahead", or "change lanes here" against this map — and, worse, it fails by matching zero lanelets rather than by reporting anything. For comparison, a hand-annotated Autoware map of similar scope (nishishinjuku) carries 387 turn_direction tags and 1,607 regulatory elements across 979 lanelets.

What would fix it

Ideally the map is regenerated or post-processed so that it carries at least:

  • turn_direction (straight / left / right) on lanelets inside intersections
  • TrafficLight and StopLine (RoadMarking) regulatory elements, which CARLA's OpenDRIVE already describes and which the Town10 asset has signals for
  • type / subtype on the boundary linestrings (line_thin with solid / dashed, road_border, …), so lane-change permission is defined
  • speed_limit on lanelets, where known

Even the first and third alone would make the map usable for junction and lane-change scenarios.

If the intent is that this map stays a geometry-only reference and semantics are expected to come from elsewhere, it would help a lot to say so in the dataset README — the directory layout (autoware_maps/, lanelet2_map.osm, map_projector_info.yaml) otherwise reads as a drop-in Autoware HD map.

Happy to help with a regeneration or annotation pass if that is useful.

Sign up or log in to comment