A scanning LiDAR cloud can contain accurate individual range readings and still fail to represent one simultaneous geometry. The scanner may move between rays. Combining their local coordinates as if every ray shared one sensor pose changes where those observations appear relative to one another.

Deskewing addresses that acquisition geometry. It assigns each measurement a time-dependent sensor pose and expresses the resulting points in a chosen common reference frame. The calculation needs more than a cloud timestamp, and its assumptions matter when the scene itself moves.

A scan timestamp has a definition

The ROS2 LaserScan message source identifies the header stamp with the first ray's acquisition time. It separately defines time_increment as the time between measurements and scan_time as the interval between scans.

For an ideal regularly timed sequence indexed i = 0 through N - 1, those definitions motivate t_i = t_0 + i × time_increment. The first-to-last measurement span is (N - 1) × time_increment. It is not automatically scan_time.

For an invented 501-ray scan with a 0.2 ms increment, the last ray occurs 100 ms after the first. The count contains 500 intervals. These are model timings, not a sensor specification or a claim that every device reports valid timing in this message.

The official laser_geometry package description includes accounting for skew from moving robots or tilting scanners. The geometry below is derived independently; it does not call a ROS implementation or claim a measured deskew result.

A local range point needs its acquisition pose

In a planar idealization, a ray with range r_i and angle a_i gives local coordinates p_i = (r_i cos(a_i), r_i sin(a_i)). These coordinates belong to the sensor frame at t_i.

Define T_WL(t) to transform sensor-local coordinates at time t into a fixed world frame W. It contains a planar rotation R(t) and sensor-origin translation d(t). The world point is R(t_i) p_i + d(t_i).

To express that observation in the sensor reference frame at a selected time t_r, use the inverse reference pose:

p_ref,i = inverse[T_WL(t_r)] × T_WL(t_i) × p_i.

The multiplication denotes rigid transformations, including translation. The order is consequential: first locate the observation using its own acquisition pose, then express that world location relative to the selected reference pose.

Choosing one pose for the entire scan removes the per-ray transformation that the model is intended to preserve.

One stationary feature, two sensor poses

Use a fixed world feature at (2, 1) meters. At the first observation, place the sensor origin at (0, 0) with zero yaw. The first local feature coordinate is consequently (2, 1).

At a later observation, assume the sensor origin is (0.1, 0) meters and its yaw is positive 10 degrees. All motion remains in the plane, and the feature remains stationary. The two observations can come from appropriately directed rays; this is a coordinate example, not an asserted scan-pattern specification.

Subtracting the later sensor origin gives (1.9, 1) in world coordinates. Rotating by negative 10 degrees into that later sensor frame gives approximately (2.044783, 0.654876) meters.

The different local coordinates do not establish that the feature moved. They follow from observing the same world position from different sensor poses.

If the later local point were simply inserted into the initial sensor frame, it would appear about 0.348017 m from the correct (2, 1) location. That is the coordinate error of this particular example, not a universal error per scan or a sensor accuracy measurement.

Transform both observations consistently

Choose the initial sensor frame as the common reference. Since its world pose is identity, transforming the later local point by the later positive 10-degree rotation and then adding (0.1, 0) returns (2, 1), apart from numerical rounding.

The initial and later observations now agree in the chosen reference frame. Applying the rotation alone would omit the origin displacement. Applying the translation without the rotation would also fail. The full pose belongs to each measurement.

Alternatively, choose the later sensor frame as reference. Transforming the initial observation through the inverse later pose produces (2.044783, 0.654876), matching the later local observation. The coordinates change with the reference choice, while agreement for the same stationary feature is preserved.

This is why a cloud's reference time should accompany its frame name. Sensor-local coordinates at the start and end of a moving scan can use the same physical sensor designation while representing different poses.

The pose history is part of the model

Per-ray correction requires poses at the relevant times. Interpolating between supplied poses introduces a motion assumption; it does not discover arbitrary motion that occurred between those observations.

The example specifies only two poses and evaluates those two observations. It does not silently infer the path between them or validate a particular interpolation method. Extrinsic calibration is also needed when a robot-body trajectory must be converted into the actual scanner trajectory.

Timing error creates a geometric error even when the pose calculation is otherwise consistent. In a separate pure-translation example, a 10 ms time offset at constant 0.5 m/s changes the modeled origin by 5 mm. Rotation can produce a different, range-dependent effect. One scalar offset-distance calculation cannot summarize every scan.

Moving objects remain moving

Ego-motion correction uses the sensor trajectory. It does not automatically transform a moving target into a stationary object at the reference time.

For a separate ideal target translating 1 m/s in the world, observations 100 ms apart represent positions separated by 0.1 m after perfect sensor-motion correction. Expressing both in one frame preserves that actual change; it does not remove it.

Reconstructing the target at one common scene time requires an additional object-motion model and correspondence assumptions. A visually tighter cloud alone cannot establish that those assumptions are correct.

The useful deskew account therefore identifies per-ray timing, sensor trajectory, transformation order, and the chosen reference time, while separating static-scene geometry from object motion. Those definitions explain what was corrected and what the resulting cloud still represents.

Image note: The accompanying site-library robot perception scene with a blue sensing pattern is a conceptual illustration. It does not identify a scanning LiDAR or show measured rays, a validated pose history, or a tested deskew algorithm.

Sources checked October 23, 2026:

ROS2 common_interfaces, rolling LaserScan.msg as accessed: https://github.com/ros2/common_interfaces/blob/rolling/sensor_msgs/msg/LaserScan.msg

ROS Index, laser_geometry package description as accessed: https://index.ros.org/p/laser_geometry/

All timings, sensor poses, point coordinates, transformations, and interpretation: original ZHILIANHAI editorial analysis.