BB.Actuator.Server (bb v0.15.0)

View Source

Wrapper GenServer for actuator callback modules.

This module manages the lifecycle of user-defined actuator modules, handling:

  • Parameter reference resolution at startup
  • Subscription to parameter changes
  • Delegation of GenServer callbacks to user module
  • Automatic safety registration

User modules implement the BB.Actuator behaviour and define callbacks. This server wraps them, providing the actual GenServer implementation.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

t()

@type t() :: %BB.Actuator.Server{
  bb: %{robot: module(), path: [atom()]},
  callback_module: module(),
  param_subscriptions: %{required([atom()]) => atom()},
  raw_opts: keyword(),
  resolved_opts: keyword(),
  user_state: term()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.