| | 1 | | using LGDXRobotCloud.Utilities.Enums; |
| | 2 | |
|
| | 3 | | namespace LGDXRobotCloud.Data.Contracts; |
| | 4 | |
|
| | 5 | | public record AutoTaskNavProgress |
| | 6 | | { |
| | 7 | | public double Eta { get; set; } |
| | 8 | | public int Recoveries { get; set; } |
| | 9 | | public double DistanceRemaining { get; set; } |
| | 10 | | public int WaypointsRemaining { get; set; } |
| | 11 | | } |
| | 12 | |
|
| | 13 | | public record RobotDof |
| | 14 | | { |
| 0 | 15 | | public double X { get; set; } |
| 0 | 16 | | public double Y { get; set; } |
| 0 | 17 | | public double Rotation { get; set; } |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public record RobotCriticalStatus |
| | 21 | | { |
| | 22 | | public bool HardwareEmergencyStop { get; set; } |
| | 23 | | public bool SoftwareEmergencyStop { get; set; } |
| | 24 | | public List<int> BatteryLow { get; set; } = []; |
| | 25 | | public List<int> MotorDamaged { get; set; } = []; |
| | 26 | | } |
| | 27 | |
|
| | 28 | | public record RobotDataContract |
| | 29 | | { |
| | 30 | | public required Guid RobotId { get; set; } |
| | 31 | | public required int RealmId { get; set; } |
| | 32 | | public RobotStatus RobotStatus { get; set; } = RobotStatus.Offline; |
| | 33 | | public RobotCriticalStatus CriticalStatus { get; set; } = new(); |
| | 34 | | public List<double> Batteries { get; set; } = []; |
| | 35 | | public RobotDof Position { get; set; } = new(); |
| | 36 | | public AutoTaskNavProgress NavProgress { get; set; } = new(); |
| | 37 | | } |