docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Generic 2D Lidar

    The main purpose of this prefab is to let the user define their own specifications for a standard 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.

    Generic2 D Lidar

    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 its positive 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

    Input Description
    SamplingRate This defines the number of samples per second the photosensor must take.
    RotationSpeedHz The photosensor rotation speed represents the number of turns. per second the object will rotate on itself around the Y axis.
    MinRange Sets the minimum range registered by the device.
    MaxRange Sets the maximum range registered by the device. Every sample outside the max range will have a distance of 0 meters.
    RelativeDepthError The curve representing the relative depth error as a normal distribution. 0 means no relative error.
    SpeedVariation The standard deviation of the motor speed.
    TurnCW When selected, indicates the motor turns clockwise.
    TimeConstant The time required to reach 63% of the max RPM for the motor.

    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.
    Intensity A corresponding render texture with the perceived intensity for each pixel.
    OutTranscode Provides a context for executing sampling custom passes, which then passes through the GPU processing pipeline.

    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Implementation details
    • Inputs
    • Outputs
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)