first commit -push
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace RobotNet.RobotManager.Services.Simulation.Models;
|
||||
|
||||
public enum NavigationAction
|
||||
{
|
||||
Rotate,
|
||||
Move,
|
||||
Start,
|
||||
Stop,
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using RobotNet.MapShares.Dtos;
|
||||
using RobotNet.RobotManager.Services.Planner.Space;
|
||||
using RobotNet.RobotShares.Enums;
|
||||
|
||||
namespace RobotNet.RobotManager.Services.Simulation.Models;
|
||||
|
||||
public class NavigationNode
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public double Theta { get; set; }
|
||||
public RobotDirection Direction { get; set; }
|
||||
public string Actions { get; set; } = string.Empty;
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is NavigationNode other)
|
||||
return Id == other.Id;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Id);
|
||||
}
|
||||
|
||||
public NodeDto ToNodeDto()
|
||||
{
|
||||
return new NodeDto
|
||||
{
|
||||
Id = Id,
|
||||
X = X,
|
||||
Y = Y,
|
||||
Theta = Theta,
|
||||
Direction = MapCompute.GetNodeDirection(Direction),
|
||||
Actions = Actions
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace RobotNet.RobotManager.Services.Simulation.Models;
|
||||
|
||||
public enum NavigationStateType
|
||||
{
|
||||
None,
|
||||
Ready,
|
||||
Moving,
|
||||
Stop,
|
||||
Error,
|
||||
Rotating,
|
||||
Waitting,
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using RobotNet.RobotShares.Enums;
|
||||
|
||||
namespace RobotNet.RobotManager.Services.Simulation.Models;
|
||||
|
||||
public class RobotSimulationModel
|
||||
{
|
||||
public string RobotId { get; set; } = string.Empty;
|
||||
public double RadiusWheel { get; set; }
|
||||
public double Width { get; set; }
|
||||
public double Length { get; set; }
|
||||
public double MaxVelocity { get; set; }
|
||||
public double MaxAngularVelocity { get; set; }
|
||||
public double Acceleration { get; set; }
|
||||
public double Deceleration { get; set; }
|
||||
public NavigationType NavigationType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user