Class IScanPattern
The role of this class is to provide a common interface for all type of scan pattern so the user can set the scan patter he
wants on an input port.
Syntax
[NodeCategory("Interface", "IScanPattern", NodeTick.Asynchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.sensorsdk@1.0/manual/DeveloperGuide/ScanPattern.html")]
public class IScanPattern : NodeRuntime
Fields
resolution
Declaration
[Tooltip("Number of samples that define the sweep orientation.")]
[Field("Resolution", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> resolution
Field Value
samples
Declaration
[Tooltip("A sampled curve that represent the sweep orientation.")]
[Field("Sampled Curve", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
public PortTypeCurveSampleQuaternion samples
Field Value
scanPattern
Binding with the pattern implementation.
Declaration
[Binding("Pattern Implementation")]
[SerializeField]
public Binding<ScanPatternHandler> scanPattern
Field Value
sweepFrequency
Declaration
[Tooltip("The number of time the scan pattern complete a cycle per second.")]
[Field("Sweep Frequency(Hz)", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> sweepFrequency
Field Value
timeOffset
Declaration
[Tooltip("Time in second before starting a cycle.")]
[Field("Time Offset(s)", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> timeOffset
Field Value
Methods
Enable(Scheduler.ClockState)
Initialize the sampled curved of the sweep orientation.
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