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

24 lines
724 B
C#

namespace RobotApp.Services.Robot.Simulation.Navigation;
public class ForkliftNavigation : SimulationNavigation
{
private readonly Logger<ForkliftNavigation> Logger;
public ForkliftNavigation(IServiceProvider ServiceProvider) : base(ServiceProvider)
{
using var scope = ServiceProvider.CreateScope();
Logger = scope.ServiceProvider.GetRequiredService<Logger<ForkliftNavigation>>();
}
protected override void NavigationHandler()
{
try
{
// Implement differential drive navigation logic here
}
catch (Exception ex)
{
Logger.Write($"Error in ForkliftNavigationSevice: {ex.Message}", LogLevel.Error);
}
}
}