forked from nk-le/Multi-Agent-Coverage-Control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_sim_case_2_param.m
24 lines (21 loc) · 793 Bytes
/
set_sim_case_2_param.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%% Configure the parameters here
% Set simulation configuration
dt = 0.05; % Time step
EndTime = 150;
nAgent = 6; % The number of agents
w0 = 0.8.*ones(1,nAgent); % Desired orbital velocity (rad/s)
v0 = 0.16.*ones(1,nAgent); % Constant heading velocity (m/s)
% Region Configuration
region_width = 4;
region_height = 2.8;
% Controller Parameters
Q = eye(2); % Positive definite matrix Q
gamma = 1; % Control gain gamma
eps = 0.5; % Epsilon of the sigmoi function
controller = "BLF";
plot_size = 320;
% Set initial agent poses
addpath('src/Tools', 'src/Parameters', 'data/experiment');
[~, botPose, ~, ~, ~] = retrieve_data('exp_case_2.mat');
rmpath('src/Tools', 'src/Parameters', 'data/experiment');
initPose = botPose(:,:,1);