Class YDLidarX4VizController
This controller emulate the internal behavior of the YD Lidar X4 device to measure the distance.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Controller", "YDLidarX4VizController", NodeTick.Synchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
public class YDLidarX4VizController : NodeRuntime
Fields
context
Declaration
[Tooltip("Signal that allow to sync the processing with the graphic engine.")]
[Field("Transcode", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<CustomPassContext> context
Field Value
Type | Description |
---|---|
PortType<CustomPassContext> |
Read
Declaration
[Tooltip("Signal to read the incoming data on UDP.")]
[Field("Read", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<bool> Read
Field Value
Type | Description |
---|---|
PortType<Boolean> |
sweepFreq
Declaration
[Tooltip("Rotation speed of the device in Herts (Hz).")]
[Field("SweepFreq", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> sweepFreq
Field Value
Type | Description |
---|---|
PortType<Single> |
Methods
Disable()
Destroy the created custom pass.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the controller and create a custom pass to provide a custom pass context in the graph.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type | Name | Description |
---|---|---|
Scheduler.ClockState | clockState | The parameters of the waveform associated to this node |
Overrides
OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
Send a read signal at sweep frequency.
Declaration
public override bool OnTick(double now, double eventTime, Scheduler.ClockState clockState, Scheduler.Signal signal)
Parameters
Type | Name | Description |
---|---|---|
Double | now | The current time in seconds of the scheduler clocksource |
Double | eventTime | The current time in seconds of the scheduler waveform. This is independent from the clocksource time and aligned to every rising edge time in the waveform. |
Scheduler.ClockState | clockState | The current parameters of the waveform event associated to this node |
Scheduler.Signal | signal | Signals that the scheduler pass to the OnTick event receiver. These are signals that describe the action that should be done in the Node. For example, integrate this tick as multiple events. |
Returns
Type | Description |
---|---|
Boolean | Returns true if time integration was performed |