Skip to content

Fit RViz's window to the Mac's virtual display - #36

Merged
maxconwa merged 1 commit into
mainfrom
fix/mac-rviz-window
Nov 20, 2026
Merged

maxconwa merged 1 commit into
mainfrom
fix/mac-rviz-window

Conversation

@maxconwa

Copy link
Copy Markdown
Contributor

Fit RViz's window to the Mac's virtual display

Follow-up to #34. On the Mac, RViz ran but the browser view (http://localhost:6080/vnc.html) was black. The RViz configs keep the lab monitors' window geometry; the H1-2's main.rviz puts the window at x = 1990, 1245×1376 px. On the Mac's 1280×800 Xvfb display, that is entirely off-screen.

Change

  • docker/mac/RosDockerfile: installs matchbox-window-manager with the display packages.
  • docker/mac/vnc_display.sh: starts it with the display. It fits every window to the screen, with no title bars.

No RViz config, launch file or x86 file changes.

Testing

  • In a fresh Mac golem_ros container from the rebuilt image, rviz2 -d .../rviz/h12/main.rviz opens at 1280x800+0+0 (xwininfo -root -tree), with no manual steps.
  • H1-2 Mac stack with RViz during a Nav2 goal: RViz shows the robot model, OctoMap, costmap and path. The goal succeeded, 0.20 m off.

After merging, run docker/scripts/docker_build.sh ros on a Mac to pick it up.

🤖 Generated with Claude Code

https://claude.ai/code/session_015EG7pDNJLWR31eQmyKaWhr

The RViz configs keep the lab monitors' window geometry (the H1-2's at
x = 1990, 1245x1376), so on the Mac's 1280x800 Xvfb display RViz drew
entirely off-screen and noVNC showed black. vnc_display.sh now starts
matchbox-window-manager, which fits each window to the screen; checked in a
fresh golem_ros container: RViz at 1280x800+0+0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015EG7pDNJLWR31eQmyKaWhr
@maxconwa
maxconwa merged commit 418c9a3 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant