save
This commit is contained in:
31
RobotApp.Common.Shares/Dtos/RobotMonitorDto.cs
Normal file
31
RobotApp.Common.Shares/Dtos/RobotMonitorDto.cs
Normal 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; }
|
||||
}
|
||||
@@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RobotApp.VDA5050\RobotApp.VDA5050.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user