🔍 Metadata
The metadata tab shows values published to the hidden "/Metadata" table or through AdvantageKit. The metadata keys are displayed to the left, and the columns separate data from different sources (e.g. real and replay when using AdvantageKit).
The example code below shows how to log metadata.
- Java
- C++
- Python
- AdvantageKit
In WPILib, log values to the "/Metadata" table as strings using the Telemetry class.
TelemetryTable metadata = Telemetry.getTable("Metadata");
metadata.log("RobotName", "Darwin");
metadata.log("Platform", "macOS");
In WPILib, log values to the "/Metadata" table as strings using the Telemetry class.
wpi::telemetry::TelemetryTable& metadata = wpi::telemetry::GetTable("Metadata");
metadata.Log("RobotName", "Darwin");
metadata.Log("Platform", "macOS");
In WPILib, log values to the "/Metadata" table as strings using the telemetry module.
import telemetry
metadata = telemetry.get_table("Metadata")
metadata.log("RobotName", "Darwin")
metadata.log("Platform", "macOS")
In AdvantageKit, call the method below before starting the logger. Metadata is stored separately when running in real and replay for easy comparison.
Logger.recordMetadata("RobotName", "Darwin");
Logger.recordMetadata("Platform", "macOS");