RobotApp/RobotApp/Services/Robot/RobotNavigation.cs
Đăng Nguyễn b2df5b22b7 update
2025-10-13 13:17:32 +07:00

72 lines
1.9 KiB
C#

using RobotApp.Interfaces;
using RobotApp.Services.Robot.Simulation;
using RobotApp.Services.Robot.Simulation.Navigation;
using RobotApp.VDA5050.Order;
namespace RobotApp.Services.Robot;
public class RobotNavigation(SimulationModel SimModel) : INavigation
{
public bool IsReady => IsSimulation;
public bool Driving => IsSimulation ? SimNavigation is not null ? SimNavigation.Driving : false : false;
public double VelocityX => IsSimulation ? SimNavigation is not null ? SimNavigation.VelocityX : 0 : 0;
public double VelocityY => IsSimulation ? SimNavigation is not null ? SimNavigation.VelocityY : 0 : 0;
public double Omega => IsSimulation ? SimNavigation is not null ? SimNavigation.Omega : 0 : 0;
public NavigationState State => IsSimulation ? SimNavigation is not null ? SimNavigation.State : NavigationState.None : NavigationState.None;
private SimulationNavigation? SimNavigation;
private bool IsSimulation => SimModel.Enable;
public void CancelMovement()
{
throw new NotImplementedException();
}
public void Move(Node[] nodes, Edge[] edges)
{
throw new NotImplementedException();
}
public void MoveStraight(double x, double y)
{
throw new NotImplementedException();
}
public void Paused()
{
throw new NotImplementedException();
}
public void Resume()
{
throw new NotImplementedException();
}
public void Rotate(double angle)
{
throw new NotImplementedException();
}
public void UpdateOrder(int lastBaseSequence)
{
throw new NotImplementedException();
}
public void RefreshOrder(Node[] nodes, Edge[] edges)
{
throw new NotImplementedException();
}
public void UpdateOrder(string lastBaseNodeId)
{
throw new NotImplementedException();
}
public void Refresh()
{
throw new NotImplementedException();
}
}