Defines distinct callback functions invoked by the master controller whenever the state of an initiated instant action changes.

Hierarchy

  • InstantActionEventHandler

Methods

  • Invoked whenever an error is reported for an instant action that is rejected because it cannot be executed by the AGV in the first place.

    Remarks

    If the action starts executing and eventually fails with an error, such an error is reported by the handler onActionStateChanged.

    Parameters

    • error: Error

      the Error object

    • action: Action

      the related instant action

    • agvId: AgvId

      identifies the AGV this error originates from

    • state: State

      the associated raw State object as published by the AGV

    Returns void

  • Invoked whenever an instant action state has changed.

    If action state changes to FAILED, an accompanying error object may be reported by the AGV.

    Parameters

    • actionState: ActionState

      the new action state

    • withError: Error

      an Error object in case a failed action reports an error; otherwise undefined

    • action: Action

      the related instant action

    • agvId: AgvId

      identifies the AGV this state change originates from

    • state: State

      the associated raw State object as published by the AGV

    Returns void

Generated using TypeDoc