Transform Lidar Points Into the Truck Vehicle Frame

Last updated: November 29, 2026

Quick Overview

Given 2D points in a lidar sensor's frame and the sensor's mounting pose on the truck (x, y offset and yaw), write functions that convert points into the vehicle frame and back.

Aurora
Software Engineering Fundamentals
Software Engineer
Aurora
November 29, 2026
Software Engineer
Phone Screen
Software Engineering Fundamentals
Easy

0

0

0 solved


Given 2D points in a lidar sensor's frame and the sensor's mounting pose on the truck (x, y offset and yaw), write functions that convert points into the vehicle frame and back.

A truck carries several lidars, cameras and radars mounted at different positions, and every measurement must be expressed in a common frame before fusion. This warm-up checks whether you can write a rigid transform and its inverse without mixing up the order of rotation and translation.

What the Interviewer Expects
  • Applies rotation first, then translation, for sensor to vehicle
  • Derives the inverse as un-translate then rotate by negative yaw
  • Verifies by round-tripping a point
  • States frame conventions (x forward, y left, yaw counterclockwise)
  • Mentions homogeneous matrices for chaining
Key Topics to Cover
Rigid transforms
Rotation matrices
Coordinate frames
Calibration
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How do you extend this to 3D with roll and pitch?
  • How would you chain sensor to vehicle to world transforms efficiently for 100k points?
  • The trailer articulates relative to the tractor: how does that change where you mount the frame tree?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Convention: vehicle frame has x forward, y left, origin at the rear axle. The sensor pose (tx, ty, yaw) is the sensor origin and heading expressed in the vehicle frame. Input points are (x, y) in ...

High-Level Design

A point in the sensor frame becomes R(yaw) p + t in the vehicle frame, where R is the 2D rotation matrix. The inverse is R(yaw)^T (q - t). In matrix form this is one 3x3 homogeneous matrix, whic...


Submit Your Answer
Markdown supported

Related Questions