Class PhotosensorEncoder
The PhotosensorEncoder is a specialized transcoded used when doing data processing on the output of the photosensor. Most of the photosensor encoders will pack or format samples measured by the photosensor in a way that correspond to what a device api/firmware would do.
Every time it receives an encodedPeriod signal, which is the time elapsed since the last encoding, it reads the output buffer of the photosensor and fills its output buffer according to the format selected by the developer.
Inherited Members
NodeRuntime._parent
NodeRuntime._portList
NodeRuntime._queryPath
NodeRuntime._tickCPUTimeNs
NodeRuntime.Initialize(SystemGraphComponent)
NodeRuntime.Enable(Scheduler.ClockState)
NodeRuntime.Disable()
NodeRuntime.FixedUpdate()
NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public abstract class PhotosensorEncoder : Transcoder
Fields
Name | Description |
---|---|
_readCount | The total number of elements read from RawData. |
height | |
photosensorData | |
width |
Properties
Name | Description |
---|---|
SampleCountPerFrame | The number of samples (pixels, for images) per output frame. |
Methods
Name | Description |
---|---|
InitializeSensorSDKShaderKernel(string) | Load PhotosensorEncoder.compute and find the kernel corresponding to the string given. |