Main Content

MATLAB Functions for RoadRunner HD Maps

R2026b
Create, edit, query, and convert HD maps in RoadRunner using MATLAB®

RoadRunner provides MATLAB functions to convert custom data into the RoadRunner HD Map data model and import your data into RoadRunner. Using these functions, you can create a new map, edit an existing map, and read from and write to a file. You can also represent lanes, lane boundaries, lane markings, junctions, barriers, and signs in the HD Map. You can query an HD Map and retrieve information about the current lane, neighboring lanes, road geometry, and projection point on the centerline of a lane at a specified actor pose within the HD Map.

Functions

expand all

roadrunnerHDMapCreate RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.LaneCreate lanes in RoadRunner HD Map (Since R2022b)
addSuccessorAdd successor to lane in RoadRunner HD Map (Since R2022b)
addPredecessorAdd predecessor to lane in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.LaneBoundaryCreate lane boundary in RoadRunner HD Map (Since R2022b)
leftBoundarySet left boundary of lane in RoadRunner HD Map (Since R2022b)
rightBoundarySet right boundary of lane in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.LaneGroupCreate lane groups in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.AlignedReferenceProvided information for linking objects in RoadRunner HD Maps (Since R2022b)
roadrunner.hdmap.ParametricAttributionSpan-based parametric attributes (Since R2022b)
roadrunner.hdmap.SpeedLimitCreate lane speed limit in RoadRunner HD Map (Since R2024b)
roadrunner.hdmap.SpeedLimitReferenceDefine information for lane speed limit element in RoadRunner HD Map (Since R2024b)
roadrunner.hdmap.JunctionDefine junction in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.JunctionLaneStateDefine state of junction lane in RoadRunner HD Map (Since R2025a)
roadrunner.hdmap.JunctionConfigurationConfigure signal phases at junction in RoadRunner HD Map (Since R2025a)
roadrunner.hdmap.PhaseCreate signal phase at junction in RoadRunner HD Map (Since R2025a)
roadrunner.hdmap.ParkingEdgeCreate parking edge in RoadRunner HD Map (Since R2026b)
roadrunner.hdmap.ParkingSpaceCreate parking space in RoadRunner HD Map (Since R2026b)

Define Extrusion and Prop Assets

roadrunner.hdmap.BarrierCreate barrier in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.BarrierTypeCreate barrier types in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.StaticObjectCreate static objects for RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.StaticObjectTypeCreate static object types in RoadRunner HD Map (Since R2022b)

Define Sign and Signal Assets

roadrunner.hdmap.SignCreate signs in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.SignTypeCreate sign types in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.SignalCreate signal in RoadRunner HD Map (Since R2025a)
roadrunner.hdmap.SignalTypeCreate signal type in RoadRunner HD Map (Since R2025a)
roadrunner.hdmap.SignalReferenceDefine information for signal element in RoadRunner HD Map (Since R2025a)

Define Marking Assets

roadrunner.hdmap.LaneMarkingCreate lane markings in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.MarkingReferenceDefines the information for linking lane boundary and lane marking in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.CurveMarkingCreate curve marking in RoadRunner HD Map (Since R2024b)
roadrunner.hdmap.CurveMarkingTypeCreate curve marking types in RoadRunner HD Map (Since R2024b)
roadrunner.hdmap.StencilMarkingCreate stencil marking in RoadRunner HD Map (Since R2024b)
roadrunner.hdmap.StencilMarkingTypeCreate stencil marking types in RoadRunner HD Map (Since R2024b)

Define Asset Path and Reference

roadrunner.hdmap.RelativeAssetPathDefines relative path for lane marking asset in RoadRunner HD Map (Since R2022b)
roadrunner.hdmap.ReferenceDefines id of referenced object in RoadRunner HD map (Since R2022b)
roadrunner.hdmap.MetadataAdd user-defined metadata to elements of RoadRunner HD Map (Since R2023b)
roadrunnerHDMapQueryQuery RoadRunner HD Map (Since R2026a)
getLaneGet information about lane from RoadRunner HD Map (Since R2026a)
getNeighborLanesGet information about neighboring lanes from RoadRunner HD Map (Since R2026a)
getRoadTerrainGet road information from RoadRunner HD Map (Since R2026a)
getProjectionPointOnLaneGet information about projection point on lane from RoadRunner HD Map (Since R2026a)
readRead HD Map from binary file (Since R2022b)
readCRSRead coordinate reference system (CRS) data from RoadRunner HD map (Since R2023a)
writeWrite HD Map to binary file (Since R2022b)
plotPlot RoadRunner HD Map (Since R2022b)
convertToStructConvert RoadRunner HD Map into MATLAB structure (Since R2026a)

Topics

Featured Examples