This commit is contained in:
Đăng Nguyễn
2025-10-30 13:34:44 +07:00
parent 643a34a4b4
commit aa2146e383
43 changed files with 3637 additions and 96 deletions

View File

@@ -14,7 +14,29 @@ public record RobotConfigDto
public double Height { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public bool IsActive { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotConfigDto
{
public NavigationType NavigationType { get; set; }
public double RadiusWheel { get; set; }
public double Width { get; set; }
public double Length { get; set; }
public double Height { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record CreateRobotConfigDto
{
public NavigationType NavigationType { get; set; }
public double RadiusWheel { get; set; }
public double Width { get; set; }
public double Length { get; set; }
public double Height { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -7,10 +7,28 @@ public record RobotPlcConfigDto
public Guid Id { get; set; }
public string PLCAddress { get; set; }
public int PLCPort { get; set; }
public byte PLCUnitId { get; set; }
public int PLCUnitId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public bool IsActive { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotPlcConfigDto
{
public string ConfigName { get; set; }
public string Description { get; set; }
public string PLCAddress { get; set; }
public int PLCPort { get; set; }
public int PLCUnitId { get; set; }
}
public record CreateRobotPlcConfigDto
{
public string ConfigName { get; set; }
public string Description { get; set; }
public string PLCAddress { get; set; }
public int PLCPort { get; set; }
public int PLCUnitId { get; set; }
}

View File

@@ -1,20 +0,0 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotSafetyConfig
{
public Guid Id { get; set; }
public double SafetySpeedVerySlow { get; set; }
public double SafetySpeedSlow { get; set; }
public double SafetySpeedNormal { get; set; }
public double SafetySpeedMedium { get; set; }
public double SafetySpeedOptimal { get; set; }
public double SafetySpeedFast { get; set; }
public double SafetySpeedVeryFast { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,46 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotSafetyConfigDto
{
public Guid Id { get; set; }
public double SafetySpeedVerySlow { get; set; }
public double SafetySpeedSlow { get; set; }
public double SafetySpeedNormal { get; set; }
public double SafetySpeedMedium { get; set; }
public double SafetySpeedOptimal { get; set; }
public double SafetySpeedFast { get; set; }
public double SafetySpeedVeryFast { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotSafetyConfigDto
{
public double SafetySpeedVerySlow { get; set; }
public double SafetySpeedSlow { get; set; }
public double SafetySpeedNormal { get; set; }
public double SafetySpeedMedium { get; set; }
public double SafetySpeedOptimal { get; set; }
public double SafetySpeedFast { get; set; }
public double SafetySpeedVeryFast { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record CreateRobotSafetyConfigDto
{
public double SafetySpeedVerySlow { get; set; }
public double SafetySpeedSlow { get; set; }
public double SafetySpeedNormal { get; set; }
public double SafetySpeedMedium { get; set; }
public double SafetySpeedOptimal { get; set; }
public double SafetySpeedFast { get; set; }
public double SafetySpeedVeryFast { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -12,7 +12,29 @@ public record RobotSimulationConfigDto
public double SimulationDeceleration { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public bool IsActive { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotSimulationConfigDto
{
public bool EnableSimulation { get; set; }
public double SimulationMaxVelocity { get; set; }
public double SimulationMaxAngularVelocity { get; set; }
public double SimulationAcceleration { get; set; }
public double SimulationDeceleration { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record CreateRobotSimulationConfigDto
{
public bool EnableSimulation { get; set; }
public double SimulationMaxVelocity { get; set; }
public double SimulationMaxAngularVelocity { get; set; }
public double SimulationAcceleration { get; set; }
public double SimulationDeceleration { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -7,7 +7,7 @@ public record RobotVDA5050ConfigDto
public Guid Id { get; set; }
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; } = 1883;
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
@@ -17,7 +17,39 @@ public record RobotVDA5050ConfigDto
public bool VDA5050EnableTls { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public bool IsActive { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotVDA5050ConfigDto
{
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record CreateRobotVDA5050ConfigDto
{
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace RobotApp.Common.Shares.Enums;
public enum RobotConfigType
{
VDA5050,
Core,
Safety ,
Simulation,
PLC,
}