Skip to main content
Version: Dev (main)

RViz (ROS 2)

What you get​

Your ROS 2 system in AR: the live RViz2 scene from each viewer's own pose, RViz panels, AR tools from the ROS 2 graph, image topics as video, and headset picks published to ROS 2.

Version
qar_rviz_streaming plugin0.3.0
ROS 2Humble (prebuilt and checked). Jazzy and Linux do not build yet.
QAROS0.9.0 or newer. Install from the Visualizer: 0.10.0.
OSWindows 11 x64

Full reference (every tab, environment variables, log messages): Running the RViz2 Plugin on Windows.

Before you start​

Step 1 for every app: Before You Start: Start QAROS and Add a Receiver. Start QAROS, open the Visualizer and add a Display Receiver, or start the player app on a paired headset. A fresh Visualizer has no receiver: without one, the app streams to nobody.

Install​

  • ROS 2 Humble with a working rviz2. QAROS does not repair a broken distribution: see the repair scripts.
  • Qt 5.15 (msvc2019_64): the Windows distribution ships none. QAROS looks in QAR_QT_ROOT, Qt5_DIR, a qt folder beside the distribution, its pixi environment, C:\Qt.
  • The plugin, from the Visualizer (recommended): open the ROS 2 Rviz tile, press Install (later Update).
    • QAROS downloads the release for that distribution and checks its SHA-256.
    • It unpacks it for your Windows user, without administrator rights.
  • By hand: build and register it as in INSTALL.md. Your registered build shows as Detected and wins over a download.

Connect to QAROS​

  • Detection: one tile per distribution, for example ROS 2 Rviz (Humble).
    • QAROS looks in AMENT_PREFIX_PATH, C:\opt\ros\*, C:\dev\ros2_*, C:\pixi_ws\ros2-windows.
    • A folder counts when it has local_setup.bat or setup.bat, and rviz2.exe.
  • Not found: a greyed-out ROS 2 Rviz row with Locate....
    1. Press Locate... (or Add ROS installation... in the Apps heading).
    2. Pick the distribution folder, with its setup script and rviz2.
    3. Every Refresh searches it from then on. See Locating an app QAROS did not find.
  • Start it: click the tile, press Launch. With plugin 0.3.0 the panel joins by itself; an older plugin needs Connect to QarOS on the Connection tab.
  • Allow it once: click Allow within 120 s (Approved local apps).
    • Until then the panel reads waiting for approval in the QAROS Hub.
    • rviz2.exe is not code-signed: QAROS asks again after RViz2 is updated or replaced.
  • Several distributions: each gets its own tile. For another configuration: ... > Duplicate as new preset, then change Executable or arguments (Developer UI mode).

The ROS 2 Rviz (Humble) tile's dialog: the distribution's rviz2, Download state Installed with the plugin version, Launch

First session​

  1. Open a target. A paired headset, or a Display Receiver (+ Add receiver in the Visualizer, Before You Start). A fresh Visualizer has no receiver: RViz has nothing to stream to until you add one.

  2. Check the panel. It reads QarOS: connected (local app) - N target(s).

  3. What you see:

    In the roomDoes
    The RViz2 scene in a 10 m app volume RViz SceneFollows your own pose, not the RViz camera
    QAR control panel, about 1 m aheadPick mode (Off / Point / Nav goal), Confirm pick, Cancel pick, panel and tool switches
    Displays (AR) and other RViz docksReal RViz widgets: clicks in AR reach them. Add more on the AR panels tab, Stream panel to AR.
    Video panelsImage topics, up to 30 fps
  4. Pick. Choose a mode, point in the headset, confirm. Points go to /clicked_point, goals to /goal_pose, initial poses to /initialpose.

  5. AR tools. AR tools tab > Add from ROS graph.... Publishing stays off until Allow publishing from AR; Publish and Send goal need a second press.

  6. Move and scale the scene with the usual app volume gestures (Moving and scaling app volumes).

Tips and limits​

  • Several headsets: lower Resolution (default 1280x720) and FPS cap (default 60) on the Settings tab. At most 8 targets.
  • AR tool pages are plain HTTP on a random port. If a headset cannot load them, pin it with QAR_PANEL_WEB_PORT and allow it in the firewall.
  • RViz2 joins the Hub of its own PC only.
  • RViz2 may crash when it closes (known issue).

Troubleshooting​

ProblemFix
The tile says Qt was not foundInstall Qt 5.15 or set QAR_QT_ROOT, then Refresh.
Stuck on waiting for approvalClick Allow in the QAROS prompt or under Sources > Waiting for approval.
RViz2 dies on connect, SEH FAULT in qar_library_initC++ runtime next to rviz2 too old: run the repository's fix_old_vc_runtime.ps1.
Connected, no targets, nothing streamsOpen a headset or click Add receiver in the Visualizer.
Only the grid showsNothing is published: start your nodes or play a bag.
This program does not match what was approvedRevoke it under Approved apps, start RViz again.