robot_stream_core library

Core pure-Dart models and interfaces for robot_stream.

This library has no dependency on ROS or Flutter. Note that pinnedHttpClient uses dart:io and therefore does not run on the web.

Classes

BatteryState
Battery telemetry reported by the robot.
LinkClosed
Transport has been disposed and can no longer be used.
LinkConnected
Connected to the robot transport.
LinkConnecting
Actively establishing the initial connection to the robot.
LinkIdle
Initial state before RobotTransport.connect is called.
LinkReconnecting
Connection dropped; waiting retryIn before attempting to reconnect.
LinkRejected
Connection rejected by the robot (HTTP 401/403: missing or invalid token).
LinkState
Connection state of a telemetry and command channel to a robot.
NamedWaypoint
A named waypoint defined by the robot, sent with RobotTransport.goToWaypoint.
The most recent navigation goal running on or completed by the robot.
A 2D navigation goal.
A handle to an active navigation goal.
Progress feedback reported by the robot during navigation (for example, Nav2 NavigateToPose feedback).
RobotPose
2D pose of a ground robot.
RobotTransport
Telemetry and command transport channel to a robot (for example, rosbridge), kept separate from video streaming.
VideoClosed
Stream has been disposed and cannot be reused.
VideoConnecting
Opening the initial connection; no frames have arrived yet.
VideoError
Structured error reported by a VideoSource.
VideoFailed
Unrecoverable error (for example, HTTP 401/403 invalid token or bad topic).
VideoIdle
Initial state before connect has been called.
VideoPlaying
Actively receiving video frames.
VideoReconnecting
Stream disconnected or stalled; retrying after retryIn.
VideoSource
A live video source streaming from a robot (such as WebRTC/WHEP or MJPEG).
VideoState
Connection state of a VideoSource.
VideoStats
Video stream metrics measured over a sampling window (typically 1 second).

Enums

Navigation goal state reported by the robot, regardless of who initiated it (app, voice command, or another node).
Final outcome of a navigation goal submitted via RobotTransport.navigateTo.
VideoErrorKind
Classification of a VideoError.

Functions

certFingerprint(List<int> der) → String
Computes the lowercase hex SHA-256 fingerprint (without colons) of a DER-encoded certificate.
normalizeFingerprint(String s) → String
Normalizes a SHA-256 fingerprint string to lowercase hex without colons or whitespace.
pinnedHttpClient(String sha256Hex) → HttpClient
Creates a dart:io HttpClient that only trusts certificates matching the SHA-256 fingerprint sha256Hex.