Class PoseSetWorker
A worker that can be added to a Pipeline in order to generate a list of
GlobalPoses during the
Implements
Inherited Members
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
[PublicAPI]
public class PoseSetWorker : PipelineWorkerBase, IPipelineWorker
Properties
ReadPoses
Gets the list of poses to read from.
Declaration
public IReadOnlyList<GlobalPose> ReadPoses { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<GlobalPose> |
WritePoses
Gets the list of poses to write to.
Declaration
protected IList<GlobalPose> WritePoses { get; }
Property Value
Type | Description |
---|---|
IList<GlobalPose> |
Methods
AddPose(GlobalPose)
Adds a pose to the WritePoses.
Declaration
public void AddPose(GlobalPose pose)
Parameters
Type | Name | Description |
---|---|---|
GlobalPose | pose | The pose pose to add. |
AddPose(GlobalPosition, Quaternion)
Creates a new pose and adds it to the WritePoses.
Declaration
public void AddPose(GlobalPosition position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
GlobalPosition | position | The position of the pose to be created. |
Quaternion | rotation | The rotation of the pose to be created. |
AddPose(GlobalPosition)
Creates a new pose and adds it to the WritePoses.
Declaration
public void AddPose(GlobalPosition position)
Parameters
Type | Name | Description |
---|---|---|
GlobalPosition | position | The position of the pose to be created. |
AddPosesFromGeoCoordinates(IList<GeoCoordinate>, GeoCoordinate, GlobalBounds)
Converts a list of GeoCoordinates into poses and adds those within the
bounds
to the WritePoses.
Declaration
public void AddPosesFromGeoCoordinates(IList<GeoCoordinate> geoCoordinates, GeoCoordinate pivot, GlobalBounds bounds)
Parameters
Type | Name | Description |
---|---|---|
IList<GeoCoordinate> | geoCoordinates | A list of GeoCoordinates to be converted and added. |
GeoCoordinate | pivot | The projection pivot to convert a GeoCoordinate into a GlobalPosition in cartesian space. |
GlobalBounds | bounds | The permitted area to add coordinates. |
CallInit()
Declaration
public override sealed void CallInit()
Overrides
CallProcessAsync(GenerationContext, IProgress<float>, CancellationToken)
Declaration
public override sealed UniTask CallProcessAsync(GenerationContext context, IProgress<float> onProgressUpdate, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GenerationContext | context | |
IProgress<float> | onProgressUpdate | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask |