refactored agent sensing and guidance

This commit is contained in:
2025-11-09 22:17:21 -08:00
parent c7510812cb
commit 8b14bfc5ce
35 changed files with 224 additions and 76 deletions

View File

@@ -24,7 +24,7 @@ classdef miSim
obj (1, 1) {mustBeA(obj, 'miSim')};
domain (1, 1) {mustBeGeometry};
objective (1, 1) {mustBeA(objective, 'sensingObjective')};
agents (:, 1) cell {mustBeAgents};
agents (:, 1) cell;
timestep (:, 1) double = 0.05;
maxIter (:, 1) double = 1000;
obstacles (:, 1) cell {mustBeGeometry} = cell(0, 1);
@@ -94,8 +94,8 @@ classdef miSim
times = linspace(0, obj.timestep * obj.maxIter, obj.maxIter+1)';
% Start video writer
obj.v.FrameRate = 1/obj.timestep;
obj.v.Quality = 90;
% obj.v.FrameRate = 1/obj.timestep;
% obj.v.Quality = 90;
obj.v.open();
for ii = 1:size(times, 1)