Introduction to Glass¶
Glass is a new dashboard and robot data visualization tool. It supports many of the same widgets that the Simulation GUI supports, including robot pose visualization and advanced plotting. In its current state, it is meant to be used as a programmer’s tool for debugging and not as a dashboard for competition use.
Glass can be launched by selecting the ellipsis menu (…) in VS Code, clicking on Start Tool and then choosing Glass.
You can also launch Glass directly by navigating to
~/wpilib/YYYY/tools and running
Glass.py (Linux and macOS) or by using the desktop shortcut (Windows).
Changing View Settings¶
The View menu item contains Zoom and Style settings that can be customized. The Zoom option dictates the size of the text in the application whereas the Style option allows you to select between the
An example of the
Dark style setting is below:
In Glass v2021.2.1 and below, the default zoom setting of 100% may cause text to appear too big on certain macOS Retina displays. Please reduce the zoom level to 75% or 50% or upgrade to v2021.2.2 or later to mitigate this issue.
Clearing Application Data¶
Application data for Glass, including widget sizes and positions as well as other custom information for widgets is stored in a
glass.ini file. The location of this file varies based on your operating system:
On Windows, the configuration file is located in
On macOS, the configuration file is located in
On Linux, the configuration file is located in
~/.configif the former does not exist.
glass.ini configuration file can simply be deleted to restore Glass to a ”clean slate“.