Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace RobotNet10.RobotApp.Services.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user