Class SamplingStamps
Manages a list of sample stamps.
Namespace: Mechatronics.SensorSDK
Syntax
public class SamplingStamps
Properties
Count
Returns the number of sample stamp in the list.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Accesses a specific sample stamp in the list.
Declaration
public SampleStamp this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the entry in the list. |
Property Value
Type | Description |
---|---|
SampleStamp | A sample stamp |
Methods
Add(Transform, Transform, Int32)
Adds a sampling stamp in the list.
Declaration
public void Add(Transform sensorToWorldTransform, Transform referenceToWorldTransform, int count)
Parameters
Type | Name | Description |
---|---|---|
Transform | sensorToWorldTransform | Used to store the position and rotation on the photosensor used as origin of the sampling. |
Transform | referenceToWorldTransform | Used to store the position and rotation of the sensor's reference frame used for output. |
Int32 | count | Number of samples to take when executing the sampling. |
Clear()
Empties the list of sample stamps.
Declaration
public void Clear()
Reset(Transform, Transform)
Clears all sampling stamps, except the last stamp. The last stamp is used a previous position reference for interpolation.
Declaration
public void Reset(Transform initialSensorTransform, Transform initialReferenceTransform)
Parameters
Type | Name | Description |
---|---|---|
Transform | initialSensorTransform | Position of the photosensor when the simulation starts. |
Transform | initialReferenceTransform | Position of the sensor's reference frame when the simulation starts. |