主要内容

preview

Preview live lidar scan data from SICK 2-D lidar sensor

Since R2026a

    Description

    Add-On Required: This feature requires the Lidar Toolbox Support Package for SICK Lidar Sensors add-on.

    preview(slObj) previews live lidar scan data from the SICK® 2-D lidar sensor associated with the sicklidar2d object slObj. The function pauses other MATLAB® processes and opens a preview window to display the lidar scan data. You must close the preview window to continue running other MATLAB commands.

    Note

    If your sensor returns multiple echoes per scan, the function plots only the first echo scan data.

    example

    Examples

    collapse all

    Create a sicklidar2d object. Ensure that you specify the correct IP address for your sensor.

    slObj = sicklidar2d(IPAddress="172.18.252.146");

    Preview the lidar scan data by using the preview function of the sicklidar2d object. The preview window opens. Note that you must close the preview window to run any other commands.

    preview(slObj)

    Input Arguments

    collapse all

    SICK 2-D lidar sensor connection, specified as a sicklidar2d object.

    Version History

    Introduced in R2026a