humanName property

String get humanName

Gets a user-friendly name for a CameraName.

Implementation

String get humanName {
	switch(this) {
		case CameraName.CAMERA_NAME_UNDEFINED: return "";
		case CameraName.ROVER_FRONT: return "Rover front";
		case CameraName.ROVER_REAR: return "Rover rear";
		case CameraName.AUTONOMY_DEPTH: return "Depth";
		case CameraName.SUBSYSTEM1: return "Subsystem 1";
		case CameraName.SUBSYSTEM2: return "Subsystem 2";
		case CameraName.SUBSYSTEM3: return "Subsystem 3";
		case CameraName.BOTTOM_LEFT: return "Bottom Left";
		case CameraName.BOTTOM_RIGHT: return "Bottom Right";
	}
	// Do not use default or else you'll lose exhaustiveness checking.
	throw ArgumentError("Unrecognized camera name: $this");
}