foxglove
The remote/web visualization tool for robium: foxglove_bridge exposes a
live ROS 2 graph over a WebSocket, and the Foxglove app (desktop or
app.foxglove.dev in a browser) connects to it or opens a recorded MCAP
file — the answer environments and gazebo route to whenever a robot or
sim runs headless/remote and RViz2's local-display requirement doesn't fit.
Two things changed over time and matter for how this skill is used: the
bridge itself (foxglove_bridge, MIT-licensed, open source) moved its
active development from foxglove/ros-foxglove-bridge (now ROS 1-only,
maintenance mode) to the foxglove/foxglove-sdk monorepo, and the app
that used to be free/open-source "Foxglove Studio" was discontinued in
February 2024 (last open-source release v1.87.0, MPL-2.0) in favor of the
current closed-source, commercial "Foxglove" 2.x app — which does still
ship a free tier the product page states is "free forever" for local/live
visualization, separate from its paid Data Platform/cloud features. The
bridge migration was confirmed via direct fetch of the
foxglove/ros-foxglove-bridge and foxglove/foxglove-sdk GitHub repos this
session; the free-tier claim was confirmed via direct fetch of
foxglove.dev's pricing page, while the Studio-to-2.x licensing history was
reconstructed via search-synthesis after the source blog post 404'd on
direct fetch (see References) — re-verify before repeating either claim,
since licensing terms are exactly the kind of thing that drifts.
When to use this skill
- Setting up
foxglove_bridge on a robot or sim host, building a layout,
recording or replaying an MCAP file, or viewing a robot's data from a
machine that isn't the robot itself.
- The trigger phrases in the description: 'foxglove', 'mcap', visualizing a
robot running on a remote server, sharing visualization with others,
recording sessions for later analysis.
- Any time
environments or gazebo has already concluded the target is
headless/remote and the next question is "how do I actually see it" —
this skill is that answer.
- Cross-references — go to the sibling skill instead when the question is:
- Whether headless/remote is the deployment target at all, GPU
passthrough, or the general local-vs-remote strategy →
environments
(load first if not already decided; this skill assumes that decision is
made and just delivers the viz half of it).
- Local desktop ROS debugging with a display attached →
rviz2.
- ML/data-centric logging outside ROS message types (policy rollouts,
LeRobot episodes) →
rerun — though LeRobot dataset episodes can also
be served straight to the Foxglove app via lerobot-dataset-viz --display-mode foxglove (invocation is the lerobot skill's
territory; verified 2026-07-12, manip-trial).
- Choosing which viz tool fits the situation at all →
visualization
(routes here once Foxglove is the right choice).
Key directives
- Delegation posture: embed + links. The core mechanics this skill
exists for — bridging a robot, recording MCAP, connecting the app
remotely — are embedded here because that's the whole reason
environments and gazebo point at this skill by name; anything beyond
that (panel-by-panel layout editing, the full MCAP CLI, Data Platform
cloud features) is a link out to Foxglove's own docs, not re-typed here.
- The bridge runs on the robot/server; the app runs wherever the viewer
is. These are two different machines in the remote case, and mixing them
up is the most common setup mistake —
foxglove_bridge is a ROS 2 node
that must be launched on the robot or sim host (it needs access to the
ROS graph), while the Foxglove app connects to it from wherever a human
is looking, local or remote. See Quick start and Usage patterns.
- Never re-teach the local-vs-remote/headless decision itself. That
decision — and the general "don't default to X11 forwarding" guidance —
belongs to
environments; this skill starts from "remote/headless is
already the answer" and only covers the Foxglove-specific mechanics of
acting on it.
- Don't expose the bridge's WebSocket port to the open internet.
foxglove_bridge has no built-in authentication — reach it over a VPN,
SSH tunnel, or private network, the same way any other unauthenticated
service on a robot would be secured, not by opening the port publicly.
See Platform gotchas.
- Never write foxglove_bridge's supported-distro list or the app's
licensing/pricing terms from memory. Both have changed — the bridge's
home repo moved, and the app went from open-source to a closed-source
product with a free tier — verify against
index.ros.org's
foxglove_bridge package page and foxglove.dev's own site before
repeating either claim in a real project.
Quick start
1. Install and launch the bridge on the robot/sim host (verified via
index.ros.org's foxglove_bridge package page on 2026-07-10: v3.4.2, MIT
license, released for Humble, Jazzy, Kilted, Lyrical, and Rolling — no
distro gap the way Nav2 has):
sudo apt install ros-$ROS_DISTRO-foxglove-bridge
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
This starts a WebSocket server on port 8765 (default) that auto-discovers
and exposes every topic currently on the ROS graph.
2. Connect the Foxglove app. Open the desktop app or
app.foxglove.dev in a browser, and add a connection:
ws://localhost:8765 if the app runs on the same machine as the bridge, or
ws://<ROBOT_IP>:8765 over a VPN/tunnel for a remote view (see Platform
gotchas — don't expose this port directly to the internet).
3. Save a layout once panels are arranged the way a given task needs
(3D view + a couple of plots + raw topic panels is a common start), so the
next session reopens the same view instead of rebuilding it.
Usage patterns
Bridge a live robot. Launch foxglove_bridge on the robot/server as in
Quick start, then connect from the app. All ROS 2 topics are exposed
automatically — no per-topic bridge configuration needed for the common
case; the bridge's own parameters (address, port, topic allow/deny lists)
are set as ROS 2 launch arguments if the defaults need narrowing (e.g.
excluding a high-bandwidth topic from remote viewing).
Record MCAP. MCAP is ROS 2's default bag storage format as of recent
distros, so the standard ros2 bag record path already writes it:
ros2 bag record -a -s mcap -o my_session
(-a records all topics; scope to specific topic names instead for a
large graph.) The resulting .mcap file opens directly in the Foxglove
app — drag it onto the window, or File > Open Local File — for offline
playback and scrubbing, no bridge or live robot needed. This is the
recording path the visualization umbrella's live-vs-recorded directive
points at for ROS 2 data.
Drive Nav2 from the app (publish goals). The 3D panel's Publish tool
can send PoseStamped goals straight into a running Nav2 stack, but its
Pose-topic default is the ROS 1-era /move_base_simple/goal — clicking a
goal publishes into the void with no error (Nav2 subscribes /goal_pose).
In the 3D panel settings → Publish, set Pose topic to /goal_pose; the
Pose-estimate default /initialpose is already right for AMCL. Verified
end-to-end 2026-07-11 (nav-trial: click-to-navigate against Jazzy Nav2
through foxglove_bridge). Note topics only stream when some panel displays
them — a topic missing from the 3D view usually just isn't toggled visible
in the panel's Topics list (latched topics like /map arrive on subscribe;
transient-local durability is handled by the bridge).
Ship a preconfigured layout with the app. Layouts export/import as
JSON files (Layout menu → Export/Import from file), so an app repo can
commit one that pre-sets the display frame, topic visibility, and the
Publish-tool topics — one import and the robot is drivable by click,
account-persistent thereafter. Verified 2026-07-11 (nav-trial:
apps/nav-trial/foxglove/nav-trial-layout.json in robium-applications is a
working sample, incl. publish: {poseTopic: "/goal_pose"}).
Teleop-drive and fire actions from the app. The Teleop panel publishes
geometry_msgs/Twist to /cmd_vel — hold-to-drive a real base straight from
the browser, no ROS on the client; set conservative per-button linear/angular
values (the panel default is unbounded). Foxglove can publish topics and call
services but CANNOT call ROS 2 actions, so dock/undock and any other
action-only command need a tiny robot-side helper node that subscribes to a
trigger topic (std_msgs/Empty) and forwards the goal to the action — a
Publish panel then becomes the button. Verified 2026-07-24 (tb4-teleop: a real
TurtleBot 4 driven + docked/undocked from the browser via a teleop_actions.py
helper and Publish-panel buttons; layout at
apps/tb4-teleop/foxglove/tb4-teleop-layout.json).
Share a view via a launcher deep-link. For a free, no-self-hosting way to
hand someone a preconfigured connection, use a launcher deep-link rather than a
self-hosted viewer (which now needs a paid plan — see Customization):
https://app.foxglove.dev/~/view?ds=foxglove-websocket&ds.url=ws://<host>:<port>&layoutId=<uuid>
opens the web app already pointed at the bridge — but layoutId must reference a
layout already imported into the org (there is no arbitrary-layout-by-URL
parameter). The secure https origin may refuse the insecure ws:// connection
(same mixed-content class as the Safari gotcha below); the desktop form
foxglove://open?ds=... sidesteps that block but fails silently if the desktop
app isn't installed. Verified 2026-07-24 (tb4-teleop).
Publish from a hand-rolled WS client (no Foxglove app). The bridge's
client-publish path can be driven directly from a custom WebSocket client —
useful for a scripted teleop or a CI smoke check with no viewer. Connect with
subprotocol foxglove.sdk.v1 (see Platform gotchas), send a JSON advertise,
then push binary client-message frames [0x01][channelId little-endian][CDR payload] (e.g. a 52-byte geometry_msgs/Twist, a 4-byte std_msgs/Empty).
Verified 2026-07-25 (tb4-teleop: against a live foxglove_bridge 3.4.2 at
ws://<robot>:8765 on real hardware — serverInfo received, channels advertised,
client-publish works).
View remotely in the web app. Point app.foxglove.dev (no desktop
install needed) at ws://<ROBOT_IP>:8765 over a VPN/SSH tunnel/tailnet —
this is the answer environments' headless-first guidance and gazebo's
headless-operation section both defer to: a teammate or a CI dashboard can
watch a robot or sim running on a server with no display attached, using
only a browser. The same connection works for a temporary SSH port-forward
(ssh -L 8765:localhost:8765 robot-host) if a persistent VPN isn't set up
for a one-off debugging session.
Platform gotchas
- No built-in auth on the bridge's WebSocket. Treat
8765 like any
other unauthenticated robot service — reachable only over a VPN, SSH
tunnel, or private network, never bound to a public interface.
- The desktop app and the web app (
app.foxglove.dev) are the same
product, different delivery — either works for the same
live-bridge-or-MCAP-file workflow; the web app needs nothing installed
and is the lower-friction choice for a teammate who just needs to look
once.
- The bridge itself is open source (MIT); the app is not. Don't assume
Foxglove's viewer code is inspectable/forkable the way it was under the
old "Foxglove Studio" — that ended February 2024. The bridge running on
the robot is unaffected by this; only the client app's license changed.
- Safari can't open
ws://localhost from the https web app. The
mixed-content block yields a generic "check that the WebSocket server is
reachable" even when the bridge is healthy — use Chrome (which exempts
localhost), the desktop app, or Lichtblick. Verified 2026-07-11
(nav-trial).
foxglove_bridge ≥3.x speaks the subprotocol foxglove.sdk.v1, not
foxglove.websocket.v1. The 3.x line (e.g. ros-jazzy-foxglove-bridge
3.4.1) is built on the Foxglove SDK and rejects the classic subprotocol
with HTTP 400 "Missing expected sec-websocket-protocol header" — a
misleading message, since the header is present, just not with the
value it wants. The viewer apps negotiate this for you; anything
hand-rolled (a health probe, a CI smoke check, a custom client) must send
the new value. Confirm what a given build expects by grepping the shared
object for the literal: strings $(ros2 pkg prefix foxglove_bridge)/lib/libfoxglove.so | grep foxglove\. — that's how this
was pinned down (2026-07-12, nav-trial demo, after ruling out curl header
formatting with a raw-socket handshake).
- "Bridge unreachable" usually isn't the bridge. Before debugging
foxglove_bridge, check the container runtime/host is actually up (a
stopped Docker Desktop presents as a closed socket in the app) and that
the port is reachable (
nc -z <host> 8765) — the bridge has no failure
mode that looks like a silently closed listener while its process runs.
- A high topic/message rate can saturate a remote link. Over a slow or
high-latency connection (a robot on cellular, a distant VPN hop), narrow
the bridge to the topics actually needed for the session (bridge launch
arguments, or a scoped
ros2 bag record topic list) rather than
streaming the full graph and fighting lag in the viewer.
- Restarting the bridge over SSH: kill it by port, not by name. A
pkill -f foxglove_bridge in the same command that runs
ros2 launch foxglove_bridge … self-matches the launch shell's own command
line and kills the SSH session (it exits 255, the bridge never starts). Free
the port instead: fuser -k 8765/tcp. Verified 2026-07-24 (tb4-teleop
start_bridge.sh).
- Persist the robot-side teleop stack as services, or a reboot silently kills
it.
foxglove_bridge AND the action-helper node (the dock/undock forwarder
above) together are the entire browser-teleop path on the robot — launched by
hand or a one-shot start_bridge.sh, a robot reboot leaves the console
connecting to nothing with no error surfaced: the base is healthy, the page
just does nothing. Install each as a systemd unit that sources the robot's
own env and sets Restart=always; on a TurtleBot 4:
ExecStart=/bin/bash -c 'source /etc/turtlebot4/setup.bash && exec ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765'
with After=turtlebot4.service, then systemctl enable --now — and the same
for the helper (… && exec python3 …/teleop_actions.py). Verified 2026-07-26
(tb4-teleop: both died on a Pi reboot — bridge, then dock/undock, seen 2× —
fixed by twin units; is-active/is-enabled + /teleop/dock subscription 1).
Customization
- Different topic scope per session: override
foxglove_bridge's
launch arguments (e.g. an allow-list) when a remote link can't carry the
full graph, rather than always bridging everything and filtering in the
app — filtering upstream saves bandwidth, filtering in the app only saves
screen space.
- Self-hosted vs.
app.foxglove.dev: the web app is a hosted client
pointed at whatever WebSocket URL is given to it — no project files here
assume the hosted URL specifically. The self-hosting story changed: the old
open-source foxglove/studio Docker image is gone, and the current self-host
path is the @foxglove/embed FoxgloveViewer dropped into your own page — but
that self-hosted viewer asset requires a paid Foxglove plan
(user-confirmed, tb4-teleop 2026-07-24; verified via
docs.foxglove.dev/docs/embed/self-hosted, fetched 2026-07-24). For a free
self-directed path, prefer launcher deep-links (see Usage patterns) over a
self-hosted viewer. Either way the connection mechanics (ws:// URL, VPN/
tunnel) are unchanged.
- Layouts per task: keep a saved layout per debugging task (nav
debugging vs. sensor calibration vs. a demo view) the same way
rviz2
keeps a config per task, rather than one layout trying to cover every
use case.
References
- Upstream: Foxglove documentation
(primary source for app/bridge usage), foxglove_bridge package page,
index.ros.org (fetched
directly on 2026-07-10 — source of the distro-coverage and
version/license facts above; re-check before a new install), foxglove/
foxglove-sdk (current home of
bridge development; fetched directly on 2026-07-10), foxglove/
ros-foxglove-bridge
(older repo, now ROS 1-only/maintenance — fetched directly on 2026-07-10,
confirms the move), Foxglove pricing
page and "Foxglove vs. Foxglove Studio:
Two Years On"
(source of the open-source-to-closed-source history above — the pricing
page was fetched directly on 2026-07-10; the Studio-transition history was
confirmed via search-synthesis of Foxglove's own blog posts and should be
re-verified by reading that post directly before repeating the exact
dates in a real project), MCAP format (fetched
directly on 2026-07-10). Sibling skills:
environments (headless/remote
decision this skill assumes is already made), rviz2 (local desktop
debugging), rerun (ML/data-centric logging), visualization (umbrella,
routes here).
Changelog
1.5.0 (2026-07-31): tb4-teleop absorption — self-hosting story corrected (the
old open-source foxglove/studio Docker image is gone; current self-host = the
@foxglove/embed FoxgloveViewer, which requires a paid plan — prefer free
launcher deep-links); new usage patterns for app.foxglove.dev /
foxglove:// deep-links (layoutId must already be in the org; https origin may
block insecure ws://) and for publishing from a hand-rolled foxglove.sdk.v1
WS client (binary [0x01][channelId][CDR] frames, verified against
foxglove_bridge 3.4.2 on real hardware).
1.4.0 (2026-07-26): tb4-teleop absorption — gotcha: persist the robot-side
teleop stack (foxglove_bridge + the dock/undock action-helper) as systemd
units with Restart=always; hand-launched, both silently die on a robot reboot
and teleop fails with no error (hit both components in one session — bridge,
then dock/undock).
1.3.0 (2026-07-24): tb4-teleop absorption — usage pattern for
teleop-driving a real base from the Teleop panel and firing action-only
commands (dock/undock) via a helper node + Publish-panel buttons (Foxglove
can't call ROS 2 actions); gotcha: restart the bridge over SSH by killing
the port (fuser -k), not pkill -f foxglove_bridge (self-kills the launch
shell, SSH 255). (3.4.2 re-confirmed the existing foxglove.sdk.v1 gotcha.)
1.2.0 (2026-07-13): nav-trial demo absorption — gotcha: foxglove_bridge
=3.x (SDK-based) requires the foxglove.sdk.v1 WebSocket subprotocol
and rejects the classic foxglove.websocket.v1 with a misleading HTTP
400; added the libfoxglove.so grep that identifies the expected value.
Bites every hand-rolled client and health probe.
1.1.2 (2026-07-12): skill-refiner run 1 — provenance claims date-stamped ('this session' → 2026-07-10, the authoring session) so the staleness sweep can age them.
1.1.1 (2026-07-12): manip-trial absorption — rerun cross-ref notes the
LeRobot bridge (lerobot-dataset-viz --display-mode foxglove serves
episodes to the Foxglove app directly).
1.1.0 (2026-07-11): nav-trial absorption — new usage patterns: publishing
Nav2 goals from the app (ROS1-default /move_base_simple/goal →
/goal_pose fix) and committing a layout JSON per app repo; gotchas:
Safari ws://localhost mixed-content block, "unreachable ≠ broken, check
the container runtime". Quick-start bridge flow confirmed ✓ under real
load (browser + headless arm64 container).
1---2name: foxglove-93description: Foxglove for robotics visualization: foxglove_bridge setup for live ROS 2 robots, layouts, MCAP recording and playback, and remote/web visualization of robots running on servers. Use when: 'foxglove', 'mcap', visualizing a robot running on a remote server, sharing visualization with others, or recording sessions for later analysis. The remote-viz answer in the robium stack — key to the local-vs-remote workflow (cross-ref environments). Not for: ROS desktop debugging (rviz2) or ML logging (rerun).4---56# foxglove78The remote/web visualization tool for robium: `foxglove_bridge` exposes a9live ROS 2 graph over a WebSocket, and the Foxglove app (desktop or10`app.foxglove.dev` in a browser) connects to it or opens a recorded MCAP11file — the answer `environments` and `gazebo` route to whenever a robot or12sim runs headless/remote and RViz2's local-display requirement doesn't fit.13Two things changed over time and matter for how this skill is used: the14bridge itself (`foxglove_bridge`, MIT-licensed, open source) moved its15active development from `foxglove/ros-foxglove-bridge` (now ROS 1-only,16maintenance mode) to the `foxglove/foxglove-sdk` monorepo, and the *app*17that used to be free/open-source "Foxglove Studio" was discontinued in18February 2024 (last open-source release v1.87.0, MPL-2.0) in favor of the19current closed-source, commercial "Foxglove" 2.x app — which does still20ship a free tier the product page states is "free forever" for local/live21visualization, separate from its paid Data Platform/cloud features. The22bridge migration was confirmed via direct fetch of the23`foxglove/ros-foxglove-bridge` and `foxglove/foxglove-sdk` GitHub repos this24session; the free-tier claim was confirmed via direct fetch of25`foxglove.dev`'s pricing page, while the Studio-to-2.x licensing history was26reconstructed via search-synthesis after the source blog post 404'd on27direct fetch (see References) — re-verify before repeating either claim,28since licensing terms are exactly the kind of thing that drifts.2930## When to use this skill3132- Setting up `foxglove_bridge` on a robot or sim host, building a layout,33 recording or replaying an MCAP file, or viewing a robot's data from a34 machine that isn't the robot itself.35- The trigger phrases in the description: 'foxglove', 'mcap', visualizing a36 robot running on a remote server, sharing visualization with others,37 recording sessions for later analysis.38- Any time `environments` or `gazebo` has already concluded the target is39 headless/remote and the next question is "how do I actually see it" —40 this skill is that answer.41- Cross-references — go to the sibling skill instead when the question is:42 - Whether headless/remote is the deployment target at all, GPU43 passthrough, or the general local-vs-remote strategy → `environments`44 (load first if not already decided; this skill assumes that decision is45 made and just delivers the viz half of it).46 - Local desktop ROS debugging with a display attached → `rviz2`.47 - ML/data-centric logging outside ROS message types (policy rollouts,48 LeRobot episodes) → `rerun` — though LeRobot dataset episodes can also49 be served straight to the Foxglove app via `lerobot-dataset-viz50 --display-mode foxglove` (invocation is the `lerobot` skill's51 territory; verified 2026-07-12, manip-trial).52 - Choosing which viz tool fits the situation at all → `visualization`53 (routes here once Foxglove is the right choice).5455## Key directives5657- **Delegation posture: embed + links.** The core mechanics this skill58 exists for — bridging a robot, recording MCAP, connecting the app59 remotely — are embedded here because that's the whole reason60 `environments` and `gazebo` point at this skill by name; anything beyond61 that (panel-by-panel layout editing, the full MCAP CLI, Data Platform62 cloud features) is a link out to Foxglove's own docs, not re-typed here.63- **The bridge runs on the robot/server; the app runs wherever the viewer64 is.** These are two different machines in the remote case, and mixing them65 up is the most common setup mistake — `foxglove_bridge` is a ROS 2 node66 that must be launched *on* the robot or sim host (it needs access to the67 ROS graph), while the Foxglove app connects to it *from* wherever a human68 is looking, local or remote. See Quick start and Usage patterns.69- **Never re-teach the local-vs-remote/headless decision itself.** That70 decision — and the general "don't default to X11 forwarding" guidance —71 belongs to `environments`; this skill starts from "remote/headless is72 already the answer" and only covers the Foxglove-specific mechanics of73 acting on it.74- **Don't expose the bridge's WebSocket port to the open internet.**75 `foxglove_bridge` has no built-in authentication — reach it over a VPN,76 SSH tunnel, or private network, the same way any other unauthenticated77 service on a robot would be secured, not by opening the port publicly.78 See Platform gotchas.79- **Never write foxglove_bridge's supported-distro list or the app's80 licensing/pricing terms from memory.** Both have changed — the bridge's81 home repo moved, and the app went from open-source to a closed-source82 product with a free tier — verify against `index.ros.org`'s83 `foxglove_bridge` package page and `foxglove.dev`'s own site before84 repeating either claim in a real project.8586## Quick start8788**1. Install and launch the bridge on the robot/sim host** (verified via89`index.ros.org`'s `foxglove_bridge` package page on 2026-07-10: v3.4.2, MIT90license, released for Humble, Jazzy, Kilted, **Lyrical**, and Rolling — no91distro gap the way Nav2 has):9293```bash94sudo apt install ros-$ROS_DISTRO-foxglove-bridge95ros2 launch foxglove_bridge foxglove_bridge_launch.xml96```9798This starts a WebSocket server on port `8765` (default) that auto-discovers99and exposes every topic currently on the ROS graph.100101**2. Connect the Foxglove app.** Open the desktop app or102`app.foxglove.dev` in a browser, and add a connection:103`ws://localhost:8765` if the app runs on the same machine as the bridge, or104`ws://<ROBOT_IP>:8765` over a VPN/tunnel for a remote view (see Platform105gotchas — don't expose this port directly to the internet).106107**3. Save a layout** once panels are arranged the way a given task needs108(3D view + a couple of plots + raw topic panels is a common start), so the109next session reopens the same view instead of rebuilding it.110111## Usage patterns112113**Bridge a live robot.** Launch `foxglove_bridge` on the robot/server as in114Quick start, then connect from the app. All ROS 2 topics are exposed115automatically — no per-topic bridge configuration needed for the common116case; the bridge's own parameters (address, port, topic allow/deny lists)117are set as ROS 2 launch arguments if the defaults need narrowing (e.g.118excluding a high-bandwidth topic from remote viewing).119120**Record MCAP.** MCAP is ROS 2's default bag storage format as of recent121distros, so the standard `ros2 bag record` path already writes it:122123```bash124ros2 bag record -a -s mcap -o my_session125```126127(`-a` records all topics; scope to specific topic names instead for a128large graph.) The resulting `.mcap` file opens directly in the Foxglove129app — drag it onto the window, or `File > Open Local File` — for offline130playback and scrubbing, no bridge or live robot needed. This is the131recording path the `visualization` umbrella's live-vs-recorded directive132points at for ROS 2 data.133134**Drive Nav2 from the app (publish goals).** The 3D panel's Publish tool135can send `PoseStamped` goals straight into a running Nav2 stack, but its136Pose-topic default is the ROS 1-era `/move_base_simple/goal` — clicking a137goal publishes into the void with no error (Nav2 subscribes `/goal_pose`).138In the 3D panel settings → Publish, set Pose topic to `/goal_pose`; the139Pose-estimate default `/initialpose` is already right for AMCL. Verified140end-to-end 2026-07-11 (nav-trial: click-to-navigate against Jazzy Nav2141through foxglove_bridge). Note topics only stream when some panel displays142them — a topic missing from the 3D view usually just isn't toggled visible143in the panel's Topics list (latched topics like `/map` arrive on subscribe;144transient-local durability is handled by the bridge).145146**Ship a preconfigured layout with the app.** Layouts export/import as147JSON files (Layout menu → Export/Import from file), so an app repo can148commit one that pre-sets the display frame, topic visibility, and the149Publish-tool topics — one import and the robot is drivable by click,150account-persistent thereafter. Verified 2026-07-11 (nav-trial:151`apps/nav-trial/foxglove/nav-trial-layout.json` in robium-applications is a152working sample, incl. `publish: {poseTopic: "/goal_pose"}`).153154**Teleop-drive and fire actions from the app.** The Teleop panel publishes155`geometry_msgs/Twist` to `/cmd_vel` — hold-to-drive a real base straight from156the browser, no ROS on the client; set conservative per-button linear/angular157values (the panel default is unbounded). Foxglove can publish topics and call158services but CANNOT call ROS 2 **actions**, so dock/undock and any other159action-only command need a tiny robot-side helper node that subscribes to a160trigger topic (`std_msgs/Empty`) and forwards the goal to the action — a161Publish panel then becomes the button. Verified 2026-07-24 (tb4-teleop: a real162TurtleBot 4 driven + docked/undocked from the browser via a `teleop_actions.py`163helper and Publish-panel buttons; layout at164`apps/tb4-teleop/foxglove/tb4-teleop-layout.json`).165166**Share a view via a launcher deep-link.** For a free, no-self-hosting way to167hand someone a preconfigured connection, use a launcher deep-link rather than a168self-hosted viewer (which now needs a paid plan — see Customization):169`https://app.foxglove.dev/~/view?ds=foxglove-websocket&ds.url=ws://<host>:<port>&layoutId=<uuid>`170opens the web app already pointed at the bridge — but `layoutId` must reference a171layout already imported into the org (there is no arbitrary-layout-by-URL172parameter). The secure https origin may refuse the insecure `ws://` connection173(same mixed-content class as the Safari gotcha below); the desktop form174`foxglove://open?ds=...` sidesteps that block but fails silently if the desktop175app isn't installed. Verified 2026-07-24 (tb4-teleop).176177**Publish from a hand-rolled WS client (no Foxglove app).** The bridge's178client-publish path can be driven directly from a custom WebSocket client —179useful for a scripted teleop or a CI smoke check with no viewer. Connect with180subprotocol `foxglove.sdk.v1` (see Platform gotchas), send a JSON `advertise`,181then push binary client-message frames `[0x01][channelId little-endian][CDR182payload]` (e.g. a 52-byte `geometry_msgs/Twist`, a 4-byte `std_msgs/Empty`).183Verified 2026-07-25 (tb4-teleop: against a live `foxglove_bridge` 3.4.2 at184`ws://<robot>:8765` on real hardware — serverInfo received, channels advertised,185client-publish works).186187**View remotely in the web app.** Point `app.foxglove.dev` (no desktop188install needed) at `ws://<ROBOT_IP>:8765` over a VPN/SSH tunnel/tailnet —189this is the answer `environments`' headless-first guidance and `gazebo`'s190headless-operation section both defer to: a teammate or a CI dashboard can191watch a robot or sim running on a server with no display attached, using192only a browser. The same connection works for a temporary SSH port-forward193(`ssh -L 8765:localhost:8765 robot-host`) if a persistent VPN isn't set up194for a one-off debugging session.195196## Platform gotchas197198- **No built-in auth on the bridge's WebSocket.** Treat `8765` like any199 other unauthenticated robot service — reachable only over a VPN, SSH200 tunnel, or private network, never bound to a public interface.201- **The desktop app and the web app (`app.foxglove.dev`) are the same202 product, different delivery** — either works for the same203 live-bridge-or-MCAP-file workflow; the web app needs nothing installed204 and is the lower-friction choice for a teammate who just needs to look205 once.206- **The bridge itself is open source (MIT); the app is not.** Don't assume207 Foxglove's viewer code is inspectable/forkable the way it was under the208 old "Foxglove Studio" — that ended February 2024. The bridge running on209 the robot is unaffected by this; only the client app's license changed.210- **Safari can't open `ws://localhost` from the https web app.** The211 mixed-content block yields a generic "check that the WebSocket server is212 reachable" even when the bridge is healthy — use Chrome (which exempts213 localhost), the desktop app, or Lichtblick. Verified 2026-07-11214 (nav-trial).215- **`foxglove_bridge` ≥3.x speaks the subprotocol `foxglove.sdk.v1`, not216 `foxglove.websocket.v1`.** The 3.x line (e.g. `ros-jazzy-foxglove-bridge`217 3.4.1) is built on the Foxglove SDK and rejects the classic subprotocol218 with `HTTP 400 "Missing expected sec-websocket-protocol header"` — a219 misleading message, since the header *is* present, just not with the220 value it wants. The viewer apps negotiate this for you; anything221 hand-rolled (a health probe, a CI smoke check, a custom client) must send222 the new value. Confirm what a given build expects by grepping the shared223 object for the literal: `strings $(ros2 pkg prefix224 foxglove_bridge)/lib/libfoxglove.so | grep foxglove\.` — that's how this225 was pinned down (2026-07-12, nav-trial demo, after ruling out curl header226 formatting with a raw-socket handshake).227- **"Bridge unreachable" usually isn't the bridge.** Before debugging228 foxglove_bridge, check the container runtime/host is actually up (a229 stopped Docker Desktop presents as a closed socket in the app) and that230 the port is reachable (`nc -z <host> 8765`) — the bridge has no failure231 mode that looks like a silently closed listener while its process runs.232- **A high topic/message rate can saturate a remote link.** Over a slow or233 high-latency connection (a robot on cellular, a distant VPN hop), narrow234 the bridge to the topics actually needed for the session (bridge launch235 arguments, or a scoped `ros2 bag record` topic list) rather than236 streaming the full graph and fighting lag in the viewer.237- **Restarting the bridge over SSH: kill it by port, not by name.** A238 `pkill -f foxglove_bridge` in the same command that runs239 `ros2 launch foxglove_bridge …` self-matches the launch shell's own command240 line and kills the SSH session (it exits 255, the bridge never starts). Free241 the port instead: `fuser -k 8765/tcp`. Verified 2026-07-24 (tb4-teleop242 `start_bridge.sh`).243- **Persist the robot-side teleop stack as services, or a reboot silently kills244 it.** `foxglove_bridge` AND the action-helper node (the dock/undock forwarder245 above) together are the entire browser-teleop path on the robot — launched by246 hand or a one-shot `start_bridge.sh`, a robot reboot leaves the console247 connecting to nothing with no error surfaced: the base is healthy, the page248 just does nothing. Install each as a `systemd` unit that sources the robot's249 own env and sets `Restart=always`; on a TurtleBot 4:250 `ExecStart=/bin/bash -c 'source /etc/turtlebot4/setup.bash && exec ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765'`251 with `After=turtlebot4.service`, then `systemctl enable --now` — and the same252 for the helper (`… && exec python3 …/teleop_actions.py`). Verified 2026-07-26253 (tb4-teleop: both died on a Pi reboot — bridge, then dock/undock, seen 2× —254 fixed by twin units; is-active/is-enabled + `/teleop/dock` subscription 1).255256## Customization257258- **Different topic scope per session:** override `foxglove_bridge`'s259 launch arguments (e.g. an allow-list) when a remote link can't carry the260 full graph, rather than always bridging everything and filtering in the261 app — filtering upstream saves bandwidth, filtering in the app only saves262 screen space.263- **Self-hosted vs. `app.foxglove.dev`:** the web app is a hosted client264 pointed at whatever WebSocket URL is given to it — no project files here265 assume the hosted URL specifically. The self-hosting story changed: the old266 open-source foxglove/studio Docker image is gone, and the current self-host267 path is the @foxglove/embed FoxgloveViewer dropped into your own page — but268 that self-hosted viewer asset requires a **paid** Foxglove plan269 (user-confirmed, tb4-teleop 2026-07-24; verified via270 docs.foxglove.dev/docs/embed/self-hosted, fetched 2026-07-24). For a free271 self-directed path, prefer launcher deep-links (see Usage patterns) over a272 self-hosted viewer. Either way the connection mechanics (`ws://` URL, VPN/273 tunnel) are unchanged.274- **Layouts per task:** keep a saved layout per debugging task (nav275 debugging vs. sensor calibration vs. a demo view) the same way `rviz2`276 keeps a config per task, rather than one layout trying to cover every277 use case.278279## References280281- Upstream: [Foxglove documentation](https://docs.foxglove.dev/docs)282 (primary source for app/bridge usage), [foxglove_bridge package page,283 index.ros.org](https://index.ros.org/p/foxglove_bridge/) (fetched284 directly on 2026-07-10 — source of the distro-coverage and285 version/license facts above; re-check before a new install), [foxglove/286 foxglove-sdk](https://github.com/foxglove/foxglove-sdk) (current home of287 bridge development; fetched directly on 2026-07-10), [foxglove/288 ros-foxglove-bridge](https://github.com/foxglove/ros-foxglove-bridge)289 (older repo, now ROS 1-only/maintenance — fetched directly on 2026-07-10,290 confirms the move), [Foxglove pricing291 page](https://foxglove.dev/pricing) and ["Foxglove vs. Foxglove Studio:292 Two Years On"](https://foxglove.dev/blog/foxglove-vs-foxglove-studio-two-years-on)293 (source of the open-source-to-closed-source history above — the pricing294 page was fetched directly on 2026-07-10; the Studio-transition history was295 confirmed via search-synthesis of Foxglove's own blog posts and should be296 re-verified by reading that post directly before repeating the exact297 dates in a real project), [MCAP format](https://mcap.dev/) (fetched298 directly on 2026-07-10). Sibling skills: `environments` (headless/remote299 decision this skill assumes is already made), `rviz2` (local desktop300 debugging), `rerun` (ML/data-centric logging), `visualization` (umbrella,301 routes here).302303## Changelog304305<!-- One dated line per battle-tested change, added by skill-author hardening sessions. -->306307- 1.5.0 (2026-07-31): tb4-teleop absorption — self-hosting story corrected (the308 old open-source foxglove/studio Docker image is gone; current self-host = the309 @foxglove/embed FoxgloveViewer, which requires a paid plan — prefer free310 launcher deep-links); new usage patterns for app.foxglove.dev /311 `foxglove://` deep-links (layoutId must already be in the org; https origin may312 block insecure ws://) and for publishing from a hand-rolled `foxglove.sdk.v1`313 WS client (binary `[0x01][channelId][CDR]` frames, verified against314 foxglove_bridge 3.4.2 on real hardware).315316- 1.4.0 (2026-07-26): tb4-teleop absorption — gotcha: persist the robot-side317 teleop stack (foxglove_bridge + the dock/undock action-helper) as systemd318 units with Restart=always; hand-launched, both silently die on a robot reboot319 and teleop fails with no error (hit both components in one session — bridge,320 then dock/undock).321322- 1.3.0 (2026-07-24): tb4-teleop absorption — usage pattern for323 teleop-driving a real base from the Teleop panel and firing action-only324 commands (dock/undock) via a helper node + Publish-panel buttons (Foxglove325 can't call ROS 2 actions); gotcha: restart the bridge over SSH by killing326 the port (`fuser -k`), not `pkill -f foxglove_bridge` (self-kills the launch327 shell, SSH 255). (3.4.2 re-confirmed the existing `foxglove.sdk.v1` gotcha.)328329- 1.2.0 (2026-07-13): nav-trial demo absorption — gotcha: foxglove_bridge330 >=3.x (SDK-based) requires the `foxglove.sdk.v1` WebSocket subprotocol331 and rejects the classic `foxglove.websocket.v1` with a misleading HTTP332 400; added the `libfoxglove.so` grep that identifies the expected value.333 Bites every hand-rolled client and health probe.334335- 1.1.2 (2026-07-12): skill-refiner run 1 — provenance claims date-stamped ('this session' → 2026-07-10, the authoring session) so the staleness sweep can age them.336337- 1.1.1 (2026-07-12): manip-trial absorption — rerun cross-ref notes the338 LeRobot bridge (`lerobot-dataset-viz --display-mode foxglove` serves339 episodes to the Foxglove app directly).340- 1.1.0 (2026-07-11): nav-trial absorption — new usage patterns: publishing341 Nav2 goals from the app (ROS1-default `/move_base_simple/goal` →342 `/goal_pose` fix) and committing a layout JSON per app repo; gotchas:343 Safari ws://localhost mixed-content block, "unreachable ≠ broken, check344 the container runtime". Quick-start bridge flow confirmed ✓ under real345 load (browser + headless arm64 container).