BB.Reactor.Dsl.WaitForState (bb_reactor v0.2.3)

Copy Markdown View Source

DSL entity for waiting for robot states in a Reactor.

The wait_for_state entity wraps BB.Reactor.Step.WaitForState with a cleaner syntax for waiting until the robot reaches a specific state.

Example

wait_for_state :wait_for_idle do
  states [:idle]
  timeout 5000
end

Summary

Types

t()

@type t() :: %BB.Reactor.Dsl.WaitForState{
  __identifier__: any(),
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  arguments: [Reactor.Dsl.Argument.t()],
  async?: boolean(),
  description: String.t() | nil,
  guards: [Reactor.Dsl.Where.t() | Reactor.Dsl.Guard.t()],
  name: atom(),
  states: [atom()],
  timeout: pos_integer() | :infinity,
  transform: nil | (any() -> any())
}