first commit -push
This commit is contained in:
27
RobotNet.RobotShares/Dtos/TrafficNodeDto.cs
Normal file
27
RobotNet.RobotShares/Dtos/TrafficNodeDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using RobotNet.RobotShares.Enums;
|
||||
|
||||
namespace RobotNet.RobotShares.Dtos;
|
||||
|
||||
public class TrafficNodeDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public double Theta { get; set; }
|
||||
public bool IsAvoidableNode { get; set; }
|
||||
public RobotDirection Direction { get; set; }
|
||||
public TrafficNodeDto[][] AvoidablePaths { get; set; } = [];
|
||||
public TrafficLockedShapeDto LockedShapes { get; set; } = new();
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is TrafficNodeDto other)
|
||||
return Id == other.Id;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user