Class ScanPatterns
The role of this class is to provide common tools used by all scan pattern.
Namespace: Mechatronics.SensorSDK
Syntax
public class ScanPatterns
Methods
CatPattern(Single, Single, Single, Single, Single)
Provide an orientation that follows rotation on two axis.
Declaration
public static Quaternion CatPattern(float t, float omegaYaw = 6.28318548F, float yawPhase = 0F, float omegaPitch = 31.4159279F, float pitchAmplitude = 0.08726647F)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | t | Time elapsed since the beginning in second. |
| Single | omegaYaw | Angle per second arround the Y axis. |
| Single | yawPhase | Offset at starting time in seconds. |
| Single | omegaPitch | Angle per second arround the X axis. |
| Single | pitchAmplitude | Scale on the final anagle. |
Returns
| Type | Description |
|---|---|
| Quaternion |
|
CircularPattern(Single, Single, Single)
Provide the orientation on a circle.
Declaration
public static Quaternion CircularPattern(float t, float omegaYaw = 6.28318548F, float phase = 0F)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | t | Time elapsed since the beginning in second. |
| Single | omegaYaw | Angle per second arround the Y axis. |
| Single | phase | Offset at starting time in seconds. |
Returns
| Type | Description |
|---|---|
| Quaternion | An orientation pointing outside the circle form the center represented by a quaternion. |