get_lidar_point_cloud
Fetch lidar sensor point clouds in Isaac Sim, returning a summary, sampled points, or writing the full sweep to a .npy file.
Instructions
Get point cloud data from a lidar sensor.
Requires the timeline to be playing — RTX lidar data is produced by Replicator while the sim runs, and a sweep only completes on some frames, so an empty read means "not this frame", not "saw nothing".
By default returns a summary rather than the raw cloud: point_count, bounds, and the nearest hit. A full sweep is tens of thousands of points and megabytes of JSON, which is rarely what you want in a response.
Args: prim_path: Prim path of the lidar sensor. max_points: Include this many points in the response, sampled at an even stride across the sweep. Omit for summary only. output_path: Write the complete cloud to this .npy file and return its path; numpy.load() reads it back as an (N, 3) array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | No | /World/Lidar | |
| max_points | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |