1

Implement base TurtleController and simple VolumeExcavationController

This commit is contained in:
2025-10-05 19:08:45 +02:00
commit 3bb3790f1b
8 changed files with 690 additions and 0 deletions

View File

@ -0,0 +1,57 @@
local Direction = require("lib.direction")
local TurtleController = require("controller.turtle_controller")
---@class TestingController
---@field controller TurtleController
local TestingController = {}
TestingController.__index = TestingController
---@return TestingController
function TestingController:Create()
local t = {}
setmetatable(t, TestingController)
t.controller = TurtleController:Create()
return t
end
-----------------------------------------------------------------------------------------------
-- Behavior Methods
-----------------------------------------------------------------------------------------------
function TestingController:TestSimpleMovement()
end
function TestingController:TestComplexMovement()
end
function TestingController:TestUnloading()
end
function TestingController:TestRefueling()
end
-----------------------------------------------------------------------------------------------
-- Main Method
-----------------------------------------------------------------------------------------------
function TestingController:Run()
self.controller:Configure()
self:TestSimpleMovement()
self:TestComplexMovement()
self:TestUnloading()
self:TestRefueling()
end
return TestingController