< Summary

Information
Class: LGDXRobotCloud.Data.Models.Redis.RobotDof
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Models/Redis/RobotData.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
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_X()100%210%
get_Y()100%210%
get_Rotation()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{
 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  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{
 022  public double X { get; set; }
 023  public double Y { get; set; }
 024  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}

Methods/Properties

get_X()
get_Y()
get_Rotation()