Foxglove Studio
Foxglove Studio is an open source application developed by FoxGlove Technologies, Inc. It is part of the Robot Operating System (ROS) ecosystem and supports playback for MCAP recordings. You can download Foxglove Studio as well as our EdgeFirst plug-in for Foxglove and customized Raivin Foxglove layout.
Getting Started
Let’s discuss how to install our custom plug-ins once you’ve installed Foxglove Stuiods.
Installing EdgeFirst Plugin
Note
These will describe installing the 1.0.2 version of the EdgeFirst plug-in for Foxglove, which is current as of time of writing.
Open Foxglove Studio
If necessary, uninstall any existing versions of the EdgeFirst plug-in
Click the User Settings button on the right side of the top menu bar.
Select the Extensions option in the pull-down menu.
Click the EdgeFirst Detect plugin
Click the “Uninstall” button
Click the “Back to dashboard” button in the top-left corner of the application main window.
Install the current version of the EdgeFirst plug-in.
Click the User Settings button on the right side of the top menu bar.
Select the Extensions option in the pull-down menu.
Click the “Install local extension…” button.
Select the
edgefirst.detect-1.0.2.foxe
file from the downloads directory.
Confirm that the 1.0.2 version was installed
Close Foxglove Studio and restart it.
Installing Foxglove Layout
At the bottom of the Playback MCAP with Foxglove Studio article, there is a Foxglove layout JSON file. Please download it.
Open Foxglove Studio
Load an MCAP file downloaded from the Raivin.
Click the “Layout” buttom in the top taskbar.
Select the “Import from file…” option in the Layout menu.
Go to the download directory holding the JSON layout file and select the file.
Confirm the layout JSON file is loaded.
Layout Features
The default Raivin layout includes:
Top panel: H.264 camera stream with bounding box overlays
Shows detection results (i.e. the coloured boxes around people when using a detection model)
Shows segementation masks (i.e. the coloured blobs covering detected objects when using a segmentation model)
Bottom right panel: GPS coordinates map view
Interactive map with zoomable blue target showing camera position
Bottom left panel: IMU sensor readings
Can be configured to show real-time plots
Bottom timeline: Playback controls for navigation
Visualization Features
In the example above, we see both detection boxes and segmentation masks in the H.264 Camera topic.
Viewing Detection Messages
The detection boxes are contained in the /model/boxes2d
topic. By default, this topic is not enabled. See the Maivin Dataset Recording section for details on how to enable this topic and record an MCAP with the Raivin.
Note
Not all vision models are able produce detection results. The default model on the Raivin can produce both detection and segmentation results.
Record a MCAP file that captures the
/model/boxes2d
topic.Confirm with the “Details” button that the newly recorded MCAP has a
/model/boxes2d
topic.
Download the file from the Raivin and load it in Foxglove Studio.
Click the “Settings” gear icon on the right side of the
/camera/h264/
panel task bar.The
/model/boxes2d
option should appear in the “Image annotations” dropdown menu in the “Image Panel” settings sidebar (bottom left of image below).
Enable the
/model/boxes2d
image annotations by clicking the closed eye icon. This will draw boxes around the detected objects.
Viewing Segmentation Messages
Segmentation masks are contained in the /model/mask_compressed
topic which is enabled on the Raivin by default. Because of the amount of data included within this stream, it is not compatible with the default Image drawing API in Foxglove Studio. To visualize the Segmentation Mask, the EdgeFirst Foxglove plug-in must be installed to view segmentation masks in Foxglove.
The instructions to view these masks are the same as above but using the /model/mask_compressed
topic instead of the /model/boxes2d
topic.
Viewing /radar/cube Messages
By default, none of the radar topics are recorded as part of an MCAP file. The Image panel in Foxglove can viewer can
Record a MCAP file that has the
/radar/cube
message in it. See Maivin Dataset Recording for detailsPlay the MCAP file in Foxglove Studio. See Playback MCAP with Foxglove Studio for details.
In the image panel, the
/radar/cube
topic should appear under the list of valid image topics.
Select the
/radar/cube
topicChange the color mode to Color Map, and select Turbo for the color map.
Leave the value min and value max on auto
You can now see the
/radar/cube
message.
IMU Data Plotting
To create IMU sensor plots:
Convert bottom left panel to Plot view
Click “Add a Series”
Select
/imu
as the topicChoose desired parameters (e.g, angular_velocity, x, y, z)
Repeat to add additional plot series as needed
{align=center}
Additional Resources
For more detailed information about Foxglove Studio features, visit the Foxglove Documentation website.