Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/automotive/roadrunner-rrhd-authoring

roadrunner-rrhd-authoring

Verified

Build RoadRunner HD Map entities in MATLAB — lanes, boundaries, markings, junctions, signs, signals, barriers, parking. Use when creating driving scenes from scratch, authoring road networks for simulation and testing automated driving systems, or assembling RRHD maps from Lanelet2 or other HD map sources.

references/validateMap.md

View on GitHub
# Skill: validateMap

**Function:** `report = validateRRHD(rrMap)`
**Source:** `scripts/validateRRHD.m`

## Description
Validates a `roadrunnerHDMap` for structural correctness. Checks:
- Duplicate IDs across all entity types
- Dangling references (lane→boundary, lane→predecessor/successor, boundary→marking, instance→type)
- Geometry has >= 2 points
- Parametric spans within [0,1]
- GeoReference within valid lat/lon bounds
- Type-instance reference integrity (signs, signals, objects, barriers, stencils)

## Inputs
| Parameter | Type | Description |
|-----------|------|-------------|
| `rrMap` | roadrunnerHDMap | The map to validate |

## Output
`report` — struct with:
| Field | Type | Description |
|-------|------|-------------|
| `.errors` | string array | Blocking issues |
| `.warnings` | string array | Non-blocking issues |
| `.isValid` | logical | `true` if no errors |

## Example
```matlab
report = validateRRHD(rrMap);
if ~report.isValid
    disp(report.errors);
end
assert(report.isValid, "Validation failed: " + strjoin(report.errors, "; "));
```

----

Copyright 2026 The MathWorks, Inc.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall