24 lines
724 B
C#
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);
|
|
}
|
|
}
|
|
}
|