< Summary

Information
Class: LGDXRobotCloud.Data.Models.Redis.AutoTaskNavProgress
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/Redis/RobotData.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 43
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Eta()100%210%
get_Recoveries()100%210%
get_DistanceRemaining()100%210%
get_WaypointsRemaining()100%210%
get_Plan()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/Redis/RobotData.cs

#LineLine coverage
 1using LGDXRobotCloud.Utilities.Enums;
 2
 3namespace LGDXRobotCloud.Data.Models.Redis;
 4
 5public record AutoTaskNavProgress
 6{
 07  public double Eta { get; set; }
 08  public int Recoveries { get; set; }
 09  public double DistanceRemaining { get; set; }
 010  public int WaypointsRemaining { get; set; }
 011  public List<Robot2Dof> Plan { get; set; } = [];
 12}
 13
 14public record Robot2Dof
 15{
 16  public double X { get; set; }
 17  public double Y { get; set; }
 18}
 19
 20public record RobotDof
 21{
 22  public double X { get; set; }
 23  public double Y { get; set; }
 24  public double Rotation { get; set; }
 25}
 26
 27public record RobotCriticalStatus
 28{
 29  public bool HardwareEmergencyStop { get; set; }
 30  public bool SoftwareEmergencyStop { get; set; }
 31  public List<int> BatteryLow { get; set; } = [];
 32  public List<int> MotorDamaged { get; set; } = [];
 33}
 34
 35public record RobotData
 36{
 37  public RobotStatus RobotStatus { get; set; } = RobotStatus.Offline;
 38  public RobotCriticalStatus CriticalStatus { get; set; } = new();
 39  public List<double> Batteries { get; set; } = [];
 40  public RobotDof Position { get; set; } = new();
 41  public AutoTaskNavProgress NavProgress { get; set; } = new();
 42  public bool PauseTaskAssignment { get; set; }
 43}