Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Multi-agent interaction planning
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Larkin Heintzman
Multi-agent interaction planning
Commits
852e9434
Commit
852e9434
authored
Dec 10, 2019
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
3f79ced7
Pipeline
#26
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
getConstBoundSet.m
Matlab Code/getConstBoundSet.m
+44
-0
No files found.
Matlab Code/getConstBoundSet.m
0 → 100644
View file @
852e9434
function
boundSet
=
getConstBoundSet
(
Z
,
x_area
,
y_area
,
bddBox
,
rho
,
obs_points
)
[
maxCols
,
~
]
=
max
(
Z
);
maxX
=
0
;
maxY
=
0
;
maxVal
=
0
;
r
=
rho
/
2
;
for
i
=
1
:
length
(
x_area
)
for
j
=
1
:
length
(
y_area
)
if
inpolygon
(
x_area
(
i
),
y_area
(
j
),
bddBox
(:,
1
),
bddBox
(:,
2
))
obs_dists
=
sqrt
((
obs_points
(:,
1
)
-
x_area
(
i
))
.^
2
+
(
obs_points
(:,
2
)
-
y_area
(
j
))
.^
2
);
if
~
any
(
obs_dists
<=
0.2
)
if
Z
(
j
,
i
)
>=
maxVal
maxVal
=
Z
(
j
,
i
);
maxX
=
x_area
(
i
);
maxY
=
y_area
(
j
);
end
end
end
end
end
%
% if maxX + sig >= bddBox(2)
% maxX = bddBox(2) - sig;
% elseif maxX - sig <= bddBox(1)
% maxX = bddBox(1) + sig;
% end
%
% if maxY + sig >= bddBox(4)
% maxY = bddBox(4) - sig;
% elseif maxX - sig <= bddBox(3)
% maxY = bddBox(3) + sig;
% end
th
=
0
:
0.05
:(
2
*
pi
);
[
xSet
,
ySet
]
=
pol2cart
(
th
,
r
);
boundSet
=
[
xSet
'+maxX,ySet'
+
maxY
];
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment