Class OusterPacketEncoder
Namespace: Global Namespace
Syntax
public class OusterPacketEncoder
Constructors
OusterPacketEncoder(ComputeShader)
Declaration
public OusterPacketEncoder(ComputeShader packetEncoder)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | packetEncoder |
Fields
_buffer
Declaration
protected ComputeBuffer _buffer
Field Value
Type | Description |
---|---|
ComputeBuffer |
_computeKernelIdx
Declaration
protected int _computeKernelIdx
Field Value
Type | Description |
---|---|
Int32 |
_computeShader
Declaration
protected ComputeShader _computeShader
Field Value
Type | Description |
---|---|
ComputeShader |
_mwToPhotonCountMagicNumber
Declaration
protected float _mwToPhotonCountMagicNumber
Field Value
Type | Description |
---|---|
Single |
kFooterSize
Declaration
public const uint kFooterSize = 1U
Field Value
Type | Description |
---|---|
UInt32 |
kHeaderSize
Declaration
public const uint kHeaderSize = 4U
Field Value
Type | Description |
---|---|
UInt32 |
kPointSize
Declaration
public const uint kPointSize = 3U
Field Value
Type | Description |
---|---|
UInt32 |
Properties
Callback
Declaration
public OusterPacketEncoder.SweepReadyCallback Callback { get; set; }
Property Value
Type | Description |
---|---|
OusterPacketEncoder.SweepReadyCallback |
Methods
ConfigureIntensityConversion(Single, Single)
Configure the intensity to hoton count conversion factor.
Declaration
public void ConfigureIntensityConversion(float exposureTime, float wavelength)
Parameters
Type | Name | Description |
---|---|---|
Single | exposureTime | Exposure time of the photodetector in seconds. |
Single | wavelength | Wavelength of the beam in meters. |
Release()
Release resources.
Declaration
public void Release()
Transcode(CustomPassContext, PhotosensorOutputBuffer, Single, UInt32, UInt32, UInt32)
Transcode a some multiple of 16 point samples to a ouster packet.
Declaration
public void Transcode(CustomPassContext ctx, PhotosensorOutputBuffer rawData, float framePeriod, uint samplingRate, uint numChannels, uint frameWidth)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Pass context to graph the command buffer from. |
PhotosensorOutputBuffer | rawData | Raw point data to trancode. |
Single | framePeriod | Sensor frame(rotation) period. |
UInt32 | samplingRate | Sensor sampling rate. |
UInt32 | numChannels | Sensor vertical beam count. |
UInt32 | frameWidth | Sensor horizontal beam count. |