28 lines
762 B
C#
28 lines
762 B
C#
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
|
|
);
|