Class PhotosensorSensingComponent
Provides a common interface for all photosensor sensing components. This is used to delegate and allow the definition of new sensing components for the photosensor node.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
[Serializable]
public abstract class PhotosensorSensingComponent : MonoBehaviour
Fields
Name | Description |
---|---|
OnSamplingCompleted | The callback to execute when the sampling is done. |
_photosensorTrajectory | The GPU structured buffer with poses along the photosensor trajectory during the last Update. |
_photosensorTrajectoryComponent | The Trajectory component added to the game object with the sensing component. |
_photosensorTrajectoryCount | The active size of _photosensorTrajectory. |
_photosensorTrajectoryList | A temporary list used to hold the data when transferring from CPU to GPU _photosensorTrajectory. Kept here to reduce allocations. |
_referenceTrajectory | The GPU structured buffer with poses along the reference frame trajectory during the last Update. |
_referenceTrajectoryComponent | The Trajectory component added to the game object bound as Reference frame in the Photosensor node. |
_referenceTrajectoryCount | The active size of _referenceTrajectory. |
_referenceTrajectoryList | A temporary list used to hold the data when transferring from CPU to GPU _referenceTrajectory. Kept here to reduce allocations. |
_sensorData | All the information required for sampling on the GPU. |
Methods
Name | Description |
---|---|
Activate(PhotosensorData, GameObject, Action<CustomPassContext>) | Initializes the sensing component. |
AssertBeamListIsValid(ExchangeBuffer<OrientedPoint>) | Checks that all direction vectors are of unit length in the given beam list. |
Deactivate() | Releases the sampler and other GPU resources. |
EndSampling(CustomPassContext) | Common code used by subclasses after sampling is done, including calling callbacks. |
HasBeamListChanged(ExchangeBuffer<OrientedPoint>) | Determines in beamList has changed since the last time UpdateBeamListModificationUid(ExchangeBuffer<OrientedPoint>) was called. |
StartSampling() | Computes trajectories and prepares compute buffers for sampling. Common code used by subclasses. |
UpdateBeamListModificationUid(ExchangeBuffer<OrientedPoint>) | Updates the modification UID to detect when the given beamList changes. |