initial commit
This commit is contained in:
27
Lab505.Shared/RobotStateDto.cs
Normal file
27
Lab505.Shared/RobotStateDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace Lab505.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Robot state pushed via SignalR for both IMR and AMR.
|
||||
/// DobotStatus_Opc / CodeDobotStatus_Opc are only meaningful for the IMR.
|
||||
/// </summary>
|
||||
public record RobotStateDto(
|
||||
double X,
|
||||
double Y,
|
||||
bool IsOnline,
|
||||
bool? NewBaseRequest,
|
||||
List<string> Errors,
|
||||
ActionStateDto[] Actions,
|
||||
// IMR-only OPC fields (zero-value for AMR)
|
||||
string DobotStatus_Opc,
|
||||
uint CodeDobotStatus_Opc,
|
||||
RobotErrorDto[] RawErrors
|
||||
);
|
||||
|
||||
public record ActionStateDto(string ActionID, string? ActionStatus);
|
||||
|
||||
/// <summary>VDA 5050 error với đầy đủ ErrorType, ErrorLevel, ErrorDescription.</summary>
|
||||
public record RobotErrorDto(
|
||||
string? ErrorType,
|
||||
string? ErrorLevel,
|
||||
string? ErrorDescription
|
||||
);
|
||||
Reference in New Issue
Block a user