YDLidar X4
The main purpose of this Prefab is to let the user work with a predefined lidar that exists on the market. This lidar is a mechanical 2D lidar. The term mechanical here means that it's a laser rotated by a dc motor. A 2D lidar is a lidar that scans only one plane with a single beam.
Implementation details
Warning
This sensor has a node that uses DXR and will not function without a compatible graphics card. See requirements for more details.
This lidar samples the scene using path tracing. The initial position (0 degree) of the lidar is toward the negative Z axis. The rays orientation is interpolated using the previous rotation and the current rotation. This interpolation is driven by the sampling rate. The heuristic in the shader assumes the photosensor will rotate on itself.
When the scene is sampled, the photosensor rotates on itself but everything else is static (including the photosensor position). To avoid having too many samples sampling a static scene, it's important to keep the simulation update time (dt) as small as possible.
Inputs
The specifications of the device are defined with hardcoded parameters. If one wants to change this, it is recommended to parametrize Generic 2D Lidar instead.
Outputs
Output | Description |
---|---|
PointCloud | A render texture with the (x, y, z) position for each pixel. The lidar frame is spread from left to right in the texture. To know the point count, one can look at the count value in this structure. |
OutTranscode | Provides a context for executing sampling custom passes, which then passes through the GPU processing pipeline. |