bob_central.browser_daemon_node

Classes

BrowserDaemonNode

Control a headless browser and publish snapshots.

Functions

main([args])

Initialize and run the node.

Module Contents

class bob_central.browser_daemon_node.BrowserDaemonNode

Bases: rclpy.node.Node

Control a headless browser and publish snapshots.

Tailored for Twitch streaming integration.

playwright = None
browser = None
browser_context = None
page = None
bridge
width
height
pub_image
sub_command
async start_browser()

Initialize Playwright and open a blank page.

command_callback(msg)

Handle incoming browser commands (async wrapper).

async process_command(cmd_data)

Execute playwright actions based on JSON command.

async publish_screenshot()

Capture screen and publish as ROS Image msg.

async run_loop()

Run the main publication loop at a fixed FPS.

async bob_central.browser_daemon_node.main(args=None)

Initialize and run the node.