Class SamplingRequest
The sampling request class describes the sampling origin and how many samples are taken. The sampling origin is defined by the current photosensor position if isSynchronized is set. If isSynchronized is not set, the sampling origin is interpolated from the previous photosensor's position and the current position. In all cases, we add an offset from the samplingOffsets list.
Namespace: Mechatronics.SensorSDK
Syntax
public class SamplingRequest
Fields
frameHeight
Used by the sensor encoder to create a representative texture to display the lidar intensity. Define the frame height.
Declaration
public uint frameHeight
Field Value
Type | Description |
---|---|
UInt32 |
frameWidth
Used by the sensor encoder to create a representative texture to display the lidar intensity. Define the frame width.
Declaration
public uint frameWidth
Field Value
Type | Description |
---|---|
UInt32 |
isSamplingOffsetsChanged
For optimization, we hint when the samplingOffsets change. This way the photosensor know when to update offsets on GPU.
Declaration
public bool isSamplingOffsetsChanged
Field Value
Type | Description |
---|---|
Boolean |
isSynchronized
if isSynchronized is set, all sample will be taken using the current position + sampling offset If isSynchronized is not set, the current position will be interpolate before adding the sampling offset
Declaration
public bool isSynchronized
Field Value
Type | Description |
---|---|
Boolean |
orientationCurrentTime
Used as cursor by the scan pattern sampling
Declaration
public float orientationCurrentTime
Field Value
Type | Description |
---|---|
Single |
sampleCount
Number of sample to take.
Declaration
public int sampleCount
Field Value
Type | Description |
---|---|
Int32 |
samplingOffsets
Position and orientation that define the sampling origin.
Declaration
public List<OrientedPoint> samplingOffsets
Field Value
Type | Description |
---|---|
List<OrientedPoint> |
samplingRate
Sampling rate used to interpolate in time the photosensor orientation.
Declaration
public uint samplingRate
Field Value
Type | Description |
---|---|
UInt32 |