BB.Kino.EventStream (bb_kino v0.3.3)

View Source

A Kino widget for displaying a live stream of BB messages.

Shows real-time messages from the robot's PubSub with filtering and pause/resume capabilities.

Usage

# Show all messages
BB.Kino.EventStream.new(MyRobot)

# Filter to sensor messages only
BB.Kino.EventStream.new(MyRobot, path_filter: [:sensor])

# Filter to specific message types
BB.Kino.EventStream.new(MyRobot,
  path_filter: [:sensor],
  message_types: [BB.Message.Sensor.JointState]
)

The widget provides:

  • Real-time message display with timestamps
  • Path and message type filtering
  • Pause/Resume functionality
  • Click to expand message details

Summary

Functions

Creates a new event stream widget for the given robot.

Functions

new(robot_module, opts \\ [])

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

Creates a new event stream widget for the given robot.

Options

  • :path_filter - list of atoms for path filtering (default: [] for all)
  • :message_types - list of message type modules to filter by
  • :max_messages - maximum messages to display (default: 100)