matlab-import-driving-data

Import recorded driving sensor data into scenariobuilder objects and preprocess timestamps in MATLAB.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-import-driving-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-import-driving-data
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/automotive/matlab-import-driving-data
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-import-driving-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Raw driving datasets (KITTI, nuScenes, Waymo, ROS bags, custom logs) come in inconsistent formats and coordinate frames, making it error-prone to load GPS, camera, lidar, and actor tracks into MATLAB's scenariobuilder objects and synchronize them for scenario building.

Core Features & Use Cases

  • Sensor Wrapping: Convert raw GPS, camera, lidar, and actor-track data into scenariobuilder.GPSData, CameraData, LidarData, ActorTrackData, Trajectory, and laneData objects.
  • Preprocessing Pipeline: Synchronize sensors, correct offsets, crop segments, and normalize or convert timestamps to a common t=0 reference.
  • Track Computation: Compute actor tracks from lidar via deep learning detectors or clustering when no annotations exist, and attach camera intrinsics and mounting parameters.
  • Use Case: Given a nuScenes recording with lidar sweeps, camera frames, and GPS logs, wrap all sensors into scenariobuilder objects, synchronize them, and hand off to scenario building for RoadRunner or OpenSCENARIO export.

Quick Start

Ask the agent to import your driving dataset folder into scenariobuilder objects and synchronize the GPS, camera, and lidar sensors on a common timeline.

Frequently Asked Questions about matlab-import-driving-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import driving sensor data into MATLAB scenariobuilder objects?

Load raw GPS, camera, lidar, and annotation files, then construct scenariobuilder.GPSData, CameraData, LidarData, and ActorTrackData objects with matching timestamps. Always run convertTimestamps and normalizeTimestamps after GPSData construction so downstream synchronize and export APIs work correctly.

How do I synchronize multiple sensors in a driving dataset?

Convert all sensor timestamps to numeric seconds, pick the longest-duration sensor as reference with normalizeTimestamps, align the others to that reference, then call synchronize between objects. Optionally crop all sensors to a common time window.

Which driving dataset formats are supported for import?

Supported inputs include KITTI, nuScenes, Waymo, Pandaset, ROS and ROS2 bags, MAT files, CSV, and MP4 video. Point clouds can be read from PCD, PLY, BIN, NPY, and LAS/LAZ formats, and GPS from JSON, HDF5, CSV, or ROS bag topics.

Can I compute actor tracks when my dataset has no annotations?

Yes, actor tracks can be computed from lidar using deep learning detectors like PointPillars or a classical clustering-plus-tracking pipeline. Results depend on scene complexity, and deep learning detectors perform much better than clustering in dense urban scenes.

When should I use drivingLogAnalyzer versus scenario building?

drivingLogAnalyzer is opt-in only, launched when you explicitly request it or report sensor problems like sync drift or timestamp mismatch. For building scenarios or exporting to RoadRunner, OpenSCENARIO, or Unreal, hand off to the matlab-use-scenario-builder skill instead.

Why does the DLA camera overlay reject my camera intrinsics?

DLA requires SensorParameters to be a struct with four fields: MountingLocation, MountingAngles, Intrinsics, and a positive EgoOriginHeight. A bare cameraIntrinsics object is accepted by the property setter but the overlay refuses it at runtime.