This commit is contained in:
Đăng Nguyễn
2025-09-26 08:48:50 +07:00
parent 0d97684f70
commit d6fe1d9d52
53 changed files with 1232 additions and 111 deletions

View File

@@ -2,8 +2,6 @@
namespace RobotApp.VDA5050.Visualization;
#nullable disable
public class AgvPosition
{
[Required]
@@ -11,7 +9,7 @@ public class AgvPosition
[Required]
public double Y { get; set; }
[Required]
public string MapId { get; set; }
public string MapId { get; set; } = string.Empty;
[Required]
public double Theta { get; set; }
[Required]

View File

@@ -1,16 +1,16 @@
namespace RobotApp.VDA5050.Visualization;
using System.ComponentModel.DataAnnotations;
#nullable disable
namespace RobotApp.VDA5050.Visualization;
public class VisualizationMsg
{
public uint HeaderId { get; set; }
public string Timestamp { get; set; }
public string Version { get; set; }
public string Manufacturer { get; set; }
public string SerialNumber { get; set; }
public string MapId { get; set; }
public string MapDescription { get; set; }
public string Timestamp { get; set; } = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
public string Version { get; set; } = "1.0.0";
public string Manufacturer { get; set; } = "PhenikaaX";
public string SerialNumber { get; set; } = string.Empty;
public string MapId { get; set; } = string.Empty;
public string MapDescription { get; set; } = string.Empty;
public AgvPosition AgvPosition { get; set; } = new();
public Velocity Velocity { get; set; } = new();
}