Class LaserConfigMonoBehaviour
An base class used to implement ILaserConfig as a MonoBehaviour, to allow changing options in the Inspector.
Implements
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public abstract class LaserConfigMonoBehaviour : MonoBehaviour, ILaserConfig
Fields
Name | Description |
---|---|
_LaserConfigChange | An event to register to when a notification of the beam configuration is required. |
_firingSequence | List of delays from the beginning of a trigger to fire the beam. Ordered. |
_poses | The lasers position and orientation, sorted in output (elevation) order. Size equal to LaserCount. |
Properties
Name | Description |
---|---|
HorizontalCount | The number of lasers in the horizontal direction. Minimum 1. |
LaserCount | The total number of lasers. Minimum 1. |
LaserPoses | Gives the lasers position and orientation, sorted in output (elevation) order. Size equal to LaserCount. |
VerticalCount | The number of lasers in the vertical direction. Minimum 1. |
Methods
Name | Description |
---|---|
BuildLaserConfig() | Updates the laser configuration after a parameter changes. |
GeneratePoses() | Fills the _poses field with the laser positions and orientations. |
GetFiringSequence(double) | Gives the delay for each beam to fire when it's time to sample the simulation, sorted in output (elevation) order. Size equal to LaserCount. |
OnDisable() | Cleans up the laser config. |
Start() | Initializes the laser config. |
Events
Name | Description |
---|---|
LaserConfigChange | An event to register to when a notification of the beam configuration is required. |