Configuring lidar sensors

From NVIDIA-Omniverse/ovrtx · View interactive version

Configuring lidar sensors is an AI agent skill from the GitHub repository NVIDIA-Omniverse/ovrtx. Authoring and configuring OmniLidar sensor prims and lidar PointCloud render outputs. Use when user asks to create a lidar scene, configure an OmniLidar prim, choose lidar output frame/coordinate behavior, or request lidar PointCloud channels.

How to use this skill

Skill file

Configuring Lidar Sensors

When to Use

Use this skill when the user asks to create a lidar scene, configure an OmniLidar prim, choose lidar output frame/coordinate behavior, or request lidar PointCloud channels.

Inputs

Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.

Prerequisites

Instructions

  1. Identify the lidar prim, RenderProduct, PointCloud RenderVar, requested channels, coordinate behavior, and output frame.
  2. Read the matching USD, Python, or C/C++ source snippet before writing API usage.
  3. Author the OmniLidar prim and PointCloud RenderVar channel set explicitly; do not imply channels are available unless requested or auto-enabled.
  4. Combine configuration, reading, and interpretation skills only when the user asks for an end-to-end lidar workflow.
  5. When changing code, run the narrow docs test or example that owns the snippet whenever practical.

Output Format

Scripts

This skill has no scripts.

Limitations

Overview

An ovrtx lidar setup has two parts:

The same USDA scene pattern is used from Python and C; the language-specific code only loads the scene, steps the render product, and maps the output.

Minimal Lidar Prim

Python example scene

Source: examples/python/lidar/lidar_example.usda snippet configure-lidar-sensor

C example scene

Source: examples/c/lidar/lidar_example.usda snippet configure-lidar-sensor

Use OmniSensorGenericLidarCoreAPI for the Lidar generic core model. Add emitter-state API schemas only when authoring custom firing patterns with explicit emitter state arrays.

In Z-up scenes, keep the physical scene Z-up and rotate the lidar prim so that its local -Z, the prim's forward direction, points along the intended forward direction with +Y up; the lidar example authors xformOp:rotateXYZ = (90, 0, -90) to look along world +X, and the delivered points are expressed in the output's sensor frame, +X forward. Avoid changing the output frame just to satisfy visualization; choose the frame based on the data contract the application needs.

Output Attributes

These attributes, among others, live on the lidar prim with the omni:sensor:Core: prefix.

| Attribute | Values / Shape | Use |

|---|---|---|

| elementsCoordsType | CARTESIAN, SPHERICAL | Coordinate representation for basic output elements. |

| outputMotionCompensationState | NONCOMPENSATED, COMPENSATED | Motion compensation state for Coordinates, HitNormal and Velocity (see PointCloud Render Output). |

| outputFrameOfReference | SENSOR, WORLD, CUSTOM | Frame of reference for Coordinates; HitNormal and Velocity are rotated into it too (see PointCloud Render Output). Prefer SENSOR when downstream consumers expect sensor-frame points. |

| customFrameOfReferenceTrafo | [x, y, z, roll, pitch, yaw] | Custom transform used only with outputFrameOfReference = CUSTOM. |

| includeInvalidPoints | true, false | When false (the default), the model drops invalid lidar returns before output. When true, invalid returns are preserved in the point tensors and consumers must use the Flags channel's VALID (0x40) bit to distinguish valid from invalid entries. |

OmniLidar prims expose many additional sensor, scan, and emitter attributes for range, angular coverage, resolution, timing, firing patterns, and model-specific behavior. Preserve existing attributes when editing a tuned sensor, and author model-specific values from the schema when the example defaults are not enough.

For what every attribute means, its unit and how it relates to the others, read the product reference:

USD Attributes. The exhaustive tables with each attribute's type, default and tokens are generated into

Sensor API Schemas.

Output Behavior

| Attribute | Default | Use |

|---|---:|---|

| partialOutputs | false | Accumulate a scan. Set true to emit the part covered by each step. |

| instantLidar | false | Emit a full scan every frame. Useful for simple demonstrations, but not representative of a time-resolved scan. Firing uses the supplied interval's start time, with zero point time offsets. See instant lidar for pose and timing details. |

See output cadence for the three cadences and what a mid-scan step delivers.

PointCloud Render Output

Python example scene

Source: examples/python/lidar/lidar_example.usda snippet configure-lidar-pointcloud-output

C example scene

Source: examples/c/lidar/lidar_example.usda snippet configure-lidar-pointcloud-output

sourceName = "PointCloud" is the lidar sensor render output. Request only the channels needed by the consumer to keep memory use down.

Common lidar channels:

| Channel | Meaning |

|---|---|

| Coordinates | 3D point coordinates in the configured coordinate representation and output frame. |

| Intensity | Reflection intensity per point. |

| TimeOffsetNs | Per-point time offset in nanoseconds. |

| Flags | Per-point flags. |

| EmitterId, ChannelId, TickId, EchoId | Emitter, detector/channel, scan tick, and return identifiers. |

| MaterialId, ObjectId | Hit material and object identifiers. |

| HitNormal, Velocity | Unit surface normal at the hit point, and the hit point's velocity relative to the sensor (the sensor's own motion subtracted). |

| TickState | Zero-based index of the emitter state that fired the point; on a solid-state sensor all points of a scan carry the state selected for that scan. |

| Counts | Delivered point entry count used to bound every per-point tensor. With default invalid-point dropping, it is also the valid-point count. |

Naming a channel in token[] channels is what fills it. The Lidar generic core model writes EmitterId, ChannelId, TickId, EchoId, TickState, MaterialId and ObjectId for every valid return whenever the RenderVar names them, and computes HitNormal and Velocity whenever a PointCloud RenderVar requests them; no attribute switches any of them on or off. The model applies outputFrameOfReference and outputMotionCompensationState to those two along with Coordinates in every combination, CUSTOM with NONCOMPENSATED included.

A PointCloud output carries exactly the channels its RenderVar's channels list names, plus Counts and Flags, which the model adds on its own; the channel table on the Outputs page lists every channel with its type, shape and unit.

Troubleshooting

Related Skills

References

Product documentation owns the detail this skill only summarizes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.