Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.Visualization;
|
||||
|
||||
public class AgvPosition
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("x")]
|
||||
public double X { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("y")]
|
||||
public double Y { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("theta")]
|
||||
public double Theta { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("mapId")]
|
||||
public string MapId { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("mapDescription")]
|
||||
public string MapDescription { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("positionInitialized")]
|
||||
public bool PositionInitialized { get; set; }
|
||||
|
||||
[JsonPropertyName("localizationScore")]
|
||||
public double LocalizationScore { get; set; }
|
||||
|
||||
[JsonPropertyName("deviationRange")]
|
||||
public double DeviationRange { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.Visualization;
|
||||
|
||||
public class Velocity
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("vx")]
|
||||
public double Vx { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("vy")]
|
||||
public double Vy { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("omega")]
|
||||
public double Omega { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.Visualization;
|
||||
|
||||
public class VisualizationMsg
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("headerId")]
|
||||
public uint HeaderId { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("timestamp")]
|
||||
[JsonConverter(typeof(DateTimeConverter))]
|
||||
public DateTime Timestamp { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("version")]
|
||||
public string Version { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("manufacturer")]
|
||||
public string Manufacturer { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("serialNumber")]
|
||||
public string SerialNumber { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("agvPosition")]
|
||||
public AgvPosition AgvPosition { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("velocity")]
|
||||
public Velocity Velocity { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user