This commit is contained in:
2025-12-20 18:01:54 +07:00
16 changed files with 855 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
using RobotApp.VDA5050.State;
namespace RobotApp.Common.Shares.Dtos;
public class RobotMonitorDto
{
public RobotPositionDto RobotPosition { get; set; } = new();
public EdgeStateDto[] EdgeStates { get; set; } = [];
public NodeState[] NodeStates { get; set; } = [];
public bool HasOrder { get; set; }
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
}
public class RobotPositionDto
{
public double X { get; set; }
public double Y { get; set; }
public double Theta { get; set; }
}
public class EdgeStateDto()
{
public double StartX { get; set; }
public double StartY { get; set; }
public double EndX { get; set; }
public double EndY { get; set; }
public double ControlPoint1X { get; set; }
public double ControlPoint1Y { get; set; }
public double ControlPoint2X { get; set; }
public double ControlPoint2Y { get; set; }
public int Degree { get; set; }
}

View File

@@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\RobotApp.VDA5050\RobotApp.VDA5050.csproj" />
</ItemGroup>
</Project>