BB.Kino.Safety (bb_kino v0.3.3)

View Source

A Kino widget for displaying and controlling robot arming state.

Shows the current safety state with colour-coded indicators:

  • Green: Armed (ready for operation)
  • Grey: Disarmed (safe state)
  • Yellow: Disarming (transitioning to safe state)
  • Red: Error (disarm failed, may not be safe)

Usage

BB.Kino.Safety.new(MyRobot)

The widget provides:

  • Arm/Disarm toggle button
  • Force Disarm button (only in error state)
  • Real-time state updates via PubSub

Summary

Functions

Creates a new safety status widget for the given robot.

Functions

new(robot_module)

@spec new(module()) :: Kino.JS.Live.t()

Creates a new safety status widget for the given robot.