Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
db-guided-mrmp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rmoan2
db-guided-mrmp
Commits
a24218d1
Commit
a24218d1
authored
6 months ago
by
rachelmoan
Browse files
Options
Downloads
Patches
Plain Diff
Updating policy to use new local resolver class
parent
683b3f77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
guided_mrmp/planners/multirobot/db_guided_mrmp.py
+8
-8
8 additions, 8 deletions
guided_mrmp/planners/multirobot/db_guided_mrmp.py
with
8 additions
and
8 deletions
guided_mrmp/planners/multirobot/db_guided_mrmp.py
+
8
−
8
View file @
a24218d1
...
...
@@ -11,7 +11,7 @@ from shapely.geometry import Polygon, Point
from
guided_mrmp.utils
import
Env
from
guided_mrmp.utils.helpers
import
*
from
guided_mrmp.conflict_resolvers
import
TrajOptDBResolver
from
guided_mrmp.conflict_resolvers
import
TrajOptResolver
,
TrajOptDBResolver
from
guided_mrmp.utils
import
Roomba
...
...
@@ -32,7 +32,6 @@ class GuidedMRMP:
self
.
current_guides
=
[]
*
len
(
robots
)
self
.
current_trajs
=
[]
*
len
(
robots
)
def
find_all_conflicts
(
self
,
dt
):
"""
Loop over all the robots, checking for both node conflicts and edge
...
...
@@ -86,10 +85,14 @@ class GuidedMRMP:
conflicts
=
self
.
find_all_conflicts
(
dt
)
# resolve the conflicts using the database
resolver
=
TrajOptDBResolver
()
resolver
.
resolve_conflict
(
conflicts
,
screen
)
#
resolver = TrajOptDBResolver(
10, 60, conflicts, self.robots
)
resolver
=
TrajOptResolver
(
conflicts
,
self
.
robots
,
dt
,
10
,
)
updated_controls
=
resolver
.
get_local_controls
()
for
conflict
,
new_controls
in
zip
(
conflicts
,
updated_controls
):
for
r
,
control
in
zip
(
conflict
,
new_controls
):
r
.
next_control
=
control
# update the state of each robot
# for idx, r in enumerate(self.robots):
...
...
@@ -135,9 +138,6 @@ class GuidedMRMP:
if
__name__
==
"
__main__
"
:
# set_python_seed(42)
# create the environment
env
=
Env
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment