Agent Skillsmatlab/matlab-agentic-toolkit › roadrunner-asset-mapping

roadrunner-asset-mapping

GitHub

提供道路元素到RoadRunner资产路径的映射表,用于地图格式转换、资产解析及视觉资源分配。

skills-catalog/automotive/roadrunner-asset-mapping/SKILL.md matlab/matlab-agentic-toolkit

Trigger Scenarios

将地图格式转换为RRHD 解析或映射路标、车道线等资产路径 为HD Map对象分配视觉资产

Install

npx skills add matlab/matlab-agentic-toolkit --skill roadrunner-asset-mapping -g -y
More Options

Non-standard path

npx skills add https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/automotive/roadrunner-asset-mapping -g -y

Use without installing

npx skills use matlab/matlab-agentic-toolkit@roadrunner-asset-mapping

指定 Agent (Claude Code)

npx skills add matlab/matlab-agentic-toolkit --skill roadrunner-asset-mapping -a claude-code -g -y

安装 repo 全部 skill

npx skills add matlab/matlab-agentic-toolkit --all -g -y

预览 repo 内 skill

npx skills add matlab/matlab-agentic-toolkit --list

SKILL.md

Frontmatter
{
    "name": "roadrunner-asset-mapping",
    "license": "https:\/\/www.mathworks.com\/content\/dam\/mathworks\/license\/pmrl\/license.md",
    "metadata": {
        "author": "MathWorks",
        "version": "1.1"
    },
    "description": "RoadRunner asset path lookup tables for map format conversions in MATLAB. Maps lane markings, signs, signals, barriers, objects, and lane types to RoadRunner asset paths. Use when converting map formats to RRHD, resolving asset paths, or assigning visual assets to HD Map objects.\n",
    "user-invocable": false
}

RoadRunner Asset Mapping

Consolidated lookup tables for mapping source map format elements to RoadRunner project asset paths. All paths are relative to the project Assets/ folder.

When to Use

  • Resolving lane marking subtypes to RoadRunner .rrlms asset paths
  • Mapping sign codes (US MUTCD, German StVO, Japanese) to sign asset SVGs
  • Looking up barrier/extrusion asset paths for fence, guard rail, jersey barrier, wall
  • Finding prop/static object asset paths for placement in RRHD
  • Determining region-specific sign paths based on geoReference coordinates
  • Assigning lane type enums from source format lane classifications

When NOT to Use

  • Building RRHD objects from scratch — use roadrunner-rrhd-authoring
  • Performing the full Lanelet2 conversion pipeline — use roadrunner-convert-lanelet2-to-rrhd
  • Importing maps into RoadRunner — use roadrunner-import-scene

Key Rules

  • All asset paths start with Assets/ — always prefix when constructing RelativeAssetPath objects.
  • Extension matters. .rrlms = lane marking style, .rrcws = crosswalk style, .rrpms = polygon marking style, .svg_rrx = sign. Using wrong extension causes "Asset file is missing" on import.
  • Signs use .svg_rrx extension (NOT .svg). The .svg paths in XML configs are internal references only.
  • Sign naming: descriptive English names with region suffix (e.g., Stop_JP_01.svg_rrx, MaxSpeedLimit_30_DE.svg_rrx). The old Sign_<code>.svg naming is obsolete.
  • Region detection from geoReference. Use lat/lon to determine Japan/Germany/US for sign and marking paths.
  • Runtime asset discovery is MANDATORY for signs. Asset names vary by version — always verify file exists before assigning.

Source Data

Asset mappings are derived from the official RoadRunner project configuration XMLs:

  • DefaultAssets.xml — default materials and markings
  • ApolloAssetData.xml — Apollo/Baidu HD Map format
  • OpenDriveAssetData.xml — OpenDRIVE format
  • HEREAssetData_NA.xml / HEREAssetData_WE.xml — HERE HD Map (NA/EU)
  • TomTomAssetData.xml — TomTom HD Map format

These XML files are located in the RoadRunner project's configuration directory (typically <RoadRunner Project>/Configuration/).

Lane Markings

See references/laneMarkings.md for full mapping table.

Key patterns:

  • All marking assets are in Assets/Markings/ with .rrlms extension
  • Markings are keyed by type (solid/dashed/double) + color (white/yellow)
  • Default road center marking: SolidDoubleYellow.rrlms
  • Default outer boundary: SolidSingleWhite.rrlms

Signs

See references/signs.md for full mapping table.

CRITICAL: Asset File Extension

  • RoadRunner sign assets use .svg_rrx extension on disk (NOT .svg)
  • The .svg paths in project XML configs are internal references only
  • Always use .svg_rrx in RelativeAssetPath objects — using .svg causes "Could not find asset" errors

MANDATORY: Runtime Asset Discovery

  • Sign asset names vary by RoadRunner version and installed asset libraries
  • Always verify at runtime that the target asset exists before assigning it
  • Use dir(fullfile(projFolder, 'Assets', 'Signs', region, category, '*.svg_rrx')) to discover available signs

Key patterns:

  • US signs: Assets/Signs/US/Regulatory Signs/ or Assets/Signs/US/Warning Signs/
  • German signs: Assets/Signs/Germany/Regulatory Signs/
  • Japan signs: Assets/Signs/Japan/Regulatory Signs/ or Assets/Signs/Japan/Warning Signs/
  • Sign geometry uses GeoOrientedBoundingBox (Center + Dimension + GeoOrientation)

Naming convention: Signs use descriptive English names with region suffix:

  • Pattern: <Description>_<Region>.svg_rrx (e.g., Stop_JP_01.svg_rrx, MaxSpeedLimit_30_JP.svg_rrx)
  • The old Sign_<code>.svg naming is obsolete — files do NOT exist on disk

Region detection from geoReference:

lat = geoRef(1); lon = geoRef(2);
if lat >= 24 && lat <= 46 && lon >= 122 && lon <= 154
    region = "Japan";
elseif lat >= 35 && lat <= 72 && lon >= -10 && lon <= 25
    region = "Germany";
else
    region = "US";
end

Region-specific sign paths (verified R2026a with RoadRunner_Asset_Library):

Sign Japan US Germany
Stop Signs/Japan/Regulatory Signs/Stop_JP_01.svg_rrx Signs/US/Stop_US.svg_rrx Signs/Germany/Regulatory Signs/Stop_DE.svg_rrx
Yield Signs/US/Yield_US.svg_rrx Signs/Germany/Regulatory Signs/Yield_DE.svg_rrx
Speed N Signs/Japan/Regulatory Signs/MaxSpeedLimit_<N>_JP.svg_rrx Signs/US/Regulatory Signs/MaxSpeedLimit_<N>_US.svg_rrx Signs/Germany/Regulatory Signs/MaxSpeedLimit_<N>_DE.svg_rrx
Fallback Signs/Japan/Regulatory Signs/SlowDown_JP_01.svg_rrx Signs/US/White_Blank_US.svg_rrx Signs/Germany/Warning Signs/Danger_DE.svg_rrx

Signals (Traffic Lights)

Configuration Asset Path
3-light vertical (post) Props/Signals/Signal_3Light_Post01.fbx
3-light vertical (bare) Props/Signals/Signal_3Light_Bare01.fbx_rrx

Authoring vs Import limitation: You CAN author SignalType objects (add to rrMap.SignalTypes) and Signal instances (add to rrMap.Signals) in MATLAB and write the map to .rrhd — signal data IS written to the file and survives read/write cycles. However, RoadRunner silently ignores signals when importing .rrhd maps — signals will not appear in the RoadRunner scene after import. Show the asset paths and authoring code, but warn the user about this import limitation.

Barriers & Extrusions

See references/barriers.md for full mapping table.

Key patterns:

  • All extrusions in Assets/Extrusions/ with .rrext or .rrext.rrmeta extension
  • Barriers use roadrunner.hdmap.BarrierType with ExtrusionPath

Props & Static Objects

See references/staticObjects.md for full mapping table.

Key patterns:

  • Props in Assets/Props/ subdirectories (Trees, Signals, TrafficControl, etc.)
  • Static objects use roadrunner.hdmap.StaticObjectType with AssetPath
  • Objects use GeoOrientedBoundingBox for placement

Lane Types

See references/laneTypes.md for full mapping table.

Crosswalks & Curve Markings

Extension rules (commonly confused):

  • .rrcws = crosswalk style (only for actual crosswalks)
  • .rrlms = lane marking style (stop lines, bike markings, zig-zag)
  • .rrpms = polygon marking style (striped regions, chevrons)
  • .rrcws_rrx / .rrlms_rrx = region-specific variants (Japan, Germany, etc.)

Base assets (universal):

Type Asset Path Extension
Simple crosswalk Markings/SimpleCrosswalk.rrcws .rrcws
Continental crosswalk Markings/ContinentalCrosswalk.rrcws .rrcws
Ladder crosswalk Markings/LadderCrosswalk.rrcws .rrcws
Stop line Markings/StopLine.rrlms .rrlms
Striped region Markings/StripedRegion.rrpms .rrpms

Japan-specific markings (.rrlms_rrx / .rrcws_rrx):

Type Asset Path
Stop line Markings/Japan/StopLine_JP.rrlms_rrx
Crosswalk Markings/Japan/SimpleCrosswalk_JP.rrcws_rrx
Solid single white Markings/Japan/SolidSingleWhite_JP.rrlms_rrx
Dashed single white Markings/Japan/DashedSingleWhite_JP.rrlms_rrx
Solid double white Markings/Japan/SolidDoubleWhite_JP.rrlms_rrx
Solid double yellow Markings/Japan/SolidDoubleYellow_JP.rrlms_rrx

Germany-specific markings:

Type Asset Path
Stop line Markings/Germany/StopLine_DE.rrlms_rrx
Crosswalk Markings/Germany/SimpleCrosswalk_DE.rrcws_rrx

Region selection: Use base (non-regional) assets as default. Use regional variants when the map's geoReference indicates a specific region AND the regional asset exists in the project.

Stencils (Road Surface Markings)

Type Asset Path
Arrow left Assets/Stencils/Stencil_ArrowType4L.svg
Arrow right Assets/Stencils/Stencil_ArrowType4R.svg
STOP text Assets/Stencils/Stencil_STOP.svg

Materials

Purpose Asset Path
Road surface Assets/Materials/Asphalt1.rrmtl
Sidewalk / concrete Assets/Materials/Concrete1.rrmtl
Ground / grass Assets/Materials/Grass1.rrmtl

Default Assets

These are the project-wide defaults (from DefaultAssets.xml):

Name Path
Island Curb Material Assets/Materials/Concrete1.rrmtl
Blank Sign Assets/Signs/US/White_Blank_US.svg_rrx
Blank Warning Sign Assets/Signs/US/Yellow_Blank_US.svg_rrx
Surface Material Assets/Materials/Grass1.rrmtl
Crosswalk Assets/Markings/SimpleCrosswalk.rrcws
Stop Line Assets/Markings/StopLine.rrlms
Parking Space Marking Assets/Markings/SolidSingleWhite.rrlms
Road Surface Material Assets/Materials/Asphalt1.rrmtl
Road Center Marking Assets/Markings/SolidDoubleYellow.rrlms
Dashed Road Marking Assets/Markings/DashedSingleWhite.rrlms
Road Outer Boundary Assets/Markings/SolidSingleWhite.rrlms
Road Inner Boundary Assets/Markings/SolidSingleYellow.rrlms
One Way Passing Assets/Markings/DashedSolidYellow.rrlms
Vehicle Assets/Vehicles/Sedan.fbx

Usage Pattern (MATLAB)

% Example: resolve marking asset path
function assetPath = resolveMarkingAsset(type, color)
    % type: "solid", "dashed", "solid_solid", etc.
    % color: "white", "yellow" (default: white)
    if nargin < 2, color = "white"; end
    % Use lookup from references/laneMarkings.md
end

All asset paths are prefixed with Assets/ when used in RRHD RelativeAssetPath objects.

Conventions

  • All marking assets: Assets/Markings/<Name>.<ext> — extension determines type (.rrlms, .rrcws, .rrpms)
  • Regional marking variants: Assets/Markings/<Region>/<Name>_<CC>.<ext>_rrx (e.g., _JP.rrlms_rrx)
  • All sign assets: Assets/Signs/<Region>/<Category>/<Description>_<CC>.svg_rrx (NOT .svg)
  • All extrusion assets: Assets/Extrusions/<Name>.rrext (or .rrext.rrmeta)
  • All prop assets: Assets/Props/<Category>/<Name>.fbx (or .fbx_rrx)
  • Use RelativeAssetPath(AssetPath="...") for RRHD construction (Name=Value syntax)
  • Default road center: SolidDoubleYellow.rrlms; default outer boundary: SolidSingleWhite.rrlms
  • Always verify asset exists at runtime before assigning — paths vary by version and installed libraries

Copyright 2026 The MathWorks, Inc.

Version History

  • 2026.08.13 Current 2026-08-16 07:16
  • 2026.07.16 2026-07-24 16:17

Same Skill Collection

skills-catalog/ai-and-statistics/matlab-create-experiment/SKILL.md
skills-catalog/ai-and-statistics/matlab-use-machine-learning-apps/SKILL.md
skills-catalog/automotive/roadrunner-convert-lanelet2-to-rrhd/SKILL.md
skills-catalog/automotive/roadrunner-core/SKILL.md
skills-catalog/automotive/roadrunner-import-scene/SKILL.md
skills-catalog/automotive/roadrunner-rrhd-authoring/SKILL.md
skills-catalog/automotive/roadrunner-scenario-authoring/SKILL.md
skills-catalog/code-generation/matlab-deploy-embedded-code/SKILL.md
skills-catalog/code-generation/matlab-optimize-gpu-codegen/SKILL.md
skills-catalog/code-generation/matlab-review-fi-code/SKILL.md
skills-catalog/code-generation/matlab-review-fi-object-code/SKILL.md
skills-catalog/computational-biology/matlab-build-simbiology-model/SKILL.md
skills-catalog/computational-biology/matlab-fit-simbiology-model/SKILL.md
skills-catalog/computational-biology/matlab-simulate-simbiology-model/SKILL.md
skills-catalog/computational-finance/matlab-access-datafeed/SKILL.md
skills-catalog/computational-finance/matlab-use-spreadsheet-link/SKILL.md
skills-catalog/control-systems/matlab-extract-battery-features/SKILL.md
skills-catalog/control-systems/matlab-extract-rotating-machinery-features/SKILL.md
skills-catalog/control-systems/matlab-identify-linear-system/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-display-image/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-display-volume/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-model-optics/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-point-cloud-file-io/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-point-cloud-registration/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-process-large-images/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-read-write-point-cloud-file/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-register-point-clouds/SKILL.md
skills-catalog/math-and-optimization/matlab-solve-optimization/SKILL.md
skills-catalog/matlab-core/matlab-create-live-script/SKILL.md
skills-catalog/matlab-core/matlab-debug-code/SKILL.md
skills-catalog/matlab-core/matlab-debugging/SKILL.md
skills-catalog/matlab-core/matlab-install-products/SKILL.md
skills-catalog/matlab-core/matlab-list-products/SKILL.md
skills-catalog/matlab-core/matlab-read-doc/SKILL.md
skills-catalog/matlab-core/matlab-read-documentation/SKILL.md
skills-catalog/matlab-core/matlab-review-code/SKILL.md
skills-catalog/matlab-core/matlab-testing/SKILL.md
skills-catalog/matlab-core/matlab-write-test/SKILL.md
skills-catalog/matlab-data-import-and-analysis/matlab-analyze-data/SKILL.md
skills-catalog/matlab-data-import-and-analysis/matlab-import-export-data/SKILL.md
skills-catalog/matlab-environment-and-settings/matlab-migrate-settings/SKILL.md
skills-catalog/matlab-external-language-interfaces/matlab-call-python/SKILL.md
skills-catalog/matlab-software-development/matlab-analyze-dependencies/SKILL.md
skills-catalog/matlab-software-development/matlab-assess-toolbox/SKILL.md
skills-catalog/matlab-software-development/matlab-build-toolbox/SKILL.md
skills-catalog/matlab-software-development/matlab-create-buildfile/SKILL.md
skills-catalog/matlab-software-development/matlab-create-project/SKILL.md
skills-catalog/matlab-software-development/matlab-define-toolbox-api/SKILL.md
skills-catalog/matlab-software-development/matlab-document-toolbox/SKILL.md

Metadata

Files
0
Version
2026.08.13
Hash
617bbfd8
Indexed
2026-07-24 16:17

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 16:06
浙ICP备14020137号-1 $Гость$