metricsByCommandName property
Maps command names to the metrics responsible for the device.
Implementation
Map<String, Metrics> get metricsByCommandName => {
ScienceCommand().messageName: science,
DriveCommand().messageName: drive,
ArmCommand().messageName: arm,
GripperCommand().messageName: gripper,
};