to top
Datalogic APIs
public static class

PoseManager.PoseSettings.Builder

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.PoseManager.PoseSettings.Builder

Class Overview

The builder for the PoseManager.PoseSettings.

Summary

Public Constructors
Builder()
Create a new Builder for the PoseManager.PoseSettings object, with the following default values:
  • `deltaAngle` set to 10 degrees (expressed in radiants)
  • `stabilizationTIme` set to 200 milliseconds
  • `activationOptions` set to empty list
  • `executionOptions` set to empty list
Public Methods
PoseManager.PoseSettings.Builder addActivationOption(PoseManager.ActivationOption activationOption)
Add an activation option to the pose settings.
PoseManager.PoseSettings.Builder addExecutionOption(PoseManager.ExecutionOption executionOption)
Add an execution option to the pose settings.
PoseManager.PoseSettings build()
Build and return a newly created PoseSettings object.
PoseManager.PoseSettings.Builder removeActivationOption(PoseManager.ActivationOption activationOption)
Remove an activation option from the pose settings.
PoseManager.PoseSettings.Builder removeExecutionOption(PoseManager.ExecutionOption executionOption)
Remove an execution option from the pose settings.
PoseManager.PoseSettings.Builder withDeltaAngle(float deltaAngle)
Set the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector.
PoseManager.PoseSettings.Builder withStabilizationTime(int stabilizationTime)
Set the stabilization time (in milliseconds).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Added in revision 47

Create a new Builder for the PoseManager.PoseSettings object, with the following default values:

  • `deltaAngle` set to 10 degrees (expressed in radiants)
  • `stabilizationTIme` set to 200 milliseconds
  • `activationOptions` set to empty list
  • `executionOptions` set to empty list

Public Methods

public PoseManager.PoseSettings.Builder addActivationOption (PoseManager.ActivationOption activationOption)

Added in revision 47

Add an activation option to the pose settings.

Parameters
activationOption The activation option to add.
Returns
  • This builder instance.

public PoseManager.PoseSettings.Builder addExecutionOption (PoseManager.ExecutionOption executionOption)

Added in revision 47

Add an execution option to the pose settings.

Parameters
executionOption The execution option to add.
Returns
  • This builder instance.

public PoseManager.PoseSettings build ()

Added in revision 47

Build and return a newly created PoseSettings object. The created object is guaranteed to be valid and ready to use.

Returns

public PoseManager.PoseSettings.Builder removeActivationOption (PoseManager.ActivationOption activationOption)

Added in revision 47

Remove an activation option from the pose settings.

Parameters
activationOption The activation option to remove.
Returns
  • This builder instance.

public PoseManager.PoseSettings.Builder removeExecutionOption (PoseManager.ExecutionOption executionOption)

Added in revision 47

Remove an execution option from the pose settings.

Parameters
executionOption The execution option to remove.
Returns
  • This builder instance.

public PoseManager.PoseSettings.Builder withDeltaAngle (float deltaAngle)

Added in revision 47

Set the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector. If the angle is exceeded the gravity vector is considered as outside the associated pose, otherwise it is considered as inside it.

Parameters
deltaAngle The delta angle (in radians).
Returns
  • This builder instance.

public PoseManager.PoseSettings.Builder withStabilizationTime (int stabilizationTime)

Added in revision 47

Set the stabilization time (in milliseconds). The stabilization time defines how long the device must remain in or out of the pose before the pose is considered valid.

Parameters
stabilizationTime The stabilization time in milliseconds.
Returns
  • This builder instance.