Initializing domain, obstacles, objective, and agents

This commit is contained in:
2025-10-22 18:17:39 -07:00
parent 9743f1dac8
commit 5debb2b5f4
11 changed files with 558 additions and 0 deletions

10
validators/mustBeAgents.m Normal file
View File

@@ -0,0 +1,10 @@
function mustBeAgents(agents)
validGeometries = ["rectangularPrismConstraint";];
if isa(agents, 'cell')
for ii = 1:size(agents, 1)
assert(isa(agents{ii}, "agent"), "Agent in index %d is not a valid agent class", ii);
end
else
assert(isa(agents, validGeometries), "Agent is not a valid agent class");
end
end