docs.unity3d.com
    Show / Hide Table of Contents

    Class YDLidarX4ToPhotosensorOutputBuffer

    This transcoder transform a raw buffer with samples, stored into a raw YDLidar data format, into a compatible buffer to be viewed by the SensorSDK point cloud viewer.

    Inheritance
    Object
    NodeRuntime
    Transcoder
    YDLidarX4ToPhotosensorOutputBuffer
    YDLidarX4ToPhotosensorOutputBufferNode
    Inherited Members
    Transcoder.inTranscode
    Transcoder.outTranscode
    Transcoder._computeShader
    Transcoder._computeKernelIdx
    Transcoder.EnableInterfaceOnChangeEvent()
    Transcoder.DisableInterfaceOnChangeEvent()
    Transcoder.InitializeComputeShader(String, String)
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class YDLidarX4ToPhotosensorOutputBuffer : Transcoder

    Fields

    _outBuffer

    Internal reference to the PhotosensorOutputBuffer used to output the result.

    Declaration
    protected PhotosensorOutputBuffer _outBuffer
    Field Value
    Type Description
    PhotosensorOutputBuffer

    inputBuffer

    Declaration
    [Tooltip("Data encoded with the raw YDLidar X4 data format.")]
    [Field("RawData", PortDirection.Left, FieldExtra.Read)]
    [SerializeField]
    protected PortType<RawData> inputBuffer
    Field Value
    Type Description
    PortType<RawData>

    outBuffer

    Declaration
    [Tooltip("Photosensor raw data.")]
    [Field("PhotosensorOutputBuffer", PortDirection.Right, FieldExtra.Write)]
    [SerializeField]
    protected PortType<PhotosensorOutputBuffer> outBuffer
    Field Value
    Type Description
    PortType<PhotosensorOutputBuffer>

    Methods

    Disable()

    Disable the change event on inputs and release the graphic resources.

    Declaration
    public override void Disable()
    Overrides
    NodeRuntime.Disable()

    Enable(Scheduler.ClockState)

    Enable the change event on the input inTranscode and initialize the compute shader.

    Declaration
    public override void Enable(Scheduler.ClockState clockState)
    Parameters
    Type Name Description
    Scheduler.ClockState clockState

    The parameters of the waveform associated to this node

    Overrides
    NodeRuntime.Enable(Scheduler.ClockState)

    Release()

    Release the graphics resources.

    Declaration
    protected override void Release()
    Overrides
    Transcoder.Release()

    Transcode(CustomPassContext)

    Add to the command buffer the conversion from the YDLidarX4 raw data into a PhotosensorOutputBuffer.

    Declaration
    protected override void Transcode(CustomPassContext ctx)
    Parameters
    Type Name Description
    CustomPassContext ctx

    Custom pass context

    Overrides
    Transcoder.Transcode(CustomPassContext)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023