32 lines
931 B
C#
32 lines
931 B
C#
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; }
|
|
}
|