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
c3fae6d5
Commit
c3fae6d5
authored
6 months ago
by
rachelmoan
Browse files
Options
Downloads
Patches
Plain Diff
Add ability to use randm starts and goals
parent
e5bf1adb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
guided_mrmp/main.py
+4
-4
4 additions, 4 deletions
guided_mrmp/main.py
settings.yaml
+21
-6
21 additions, 6 deletions
settings.yaml
with
25 additions
and
10 deletions
guided_mrmp/main.py
+
4
−
4
View file @
c3fae6d5
...
...
@@ -7,7 +7,7 @@ from guided_mrmp.utils import Env, Roomba, Robot, create_random_starts_and_goals
from
guided_mrmp.planners
import
RRT
from
guided_mrmp.planners
import
RRTStar
from
guided_mrmp.planners.
multirobot.
db_guided_mrmp
import
GuidedMRMP
from
guided_mrmp.planners.db_guided_mrmp
import
GuidedMRMP
from
guided_mrmp.simulator
import
Simulator
class_names_dist
=
{
...
...
@@ -65,7 +65,6 @@ def initialize_robots(starts, goals, dynamics_models, radii, target_v, env):
print
(
"
initializing robots
"
)
robots
=
[]
RADIUS
=
10
colors
=
[
list
(
np
.
random
.
choice
(
range
(
256
),
size
=
3
))
for
i
in
range
(
len
(
starts
))]
...
...
@@ -113,8 +112,9 @@ if __name__ == "__main__":
robot_goals
=
settings
[
'
robot_goals
'
]
robot_radii
=
settings
[
'
robot_radii
'
]
target_v
=
settings
[
'
target_v
'
]
if
robot_starts
is
None
:
starts
,
goals
=
create_random_starts_and_goals
(
env
,
4
)
if
robot_starts
==
[]:
robot_starts
,
robot_goals
=
create_random_starts_and_goals
(
env
,
len
(
robot_radii
))
print
(
f
"
starts =
{
len
(
robot_starts
)
}
"
)
robots
=
initialize_robots
(
robot_starts
,
robot_goals
,
dynamics_models
,
robot_radii
,
target_v
,
env
)
...
...
This diff is collapsed.
Click to expand it.
settings.yaml
+
21
−
6
View file @
c3fae6d5
single_agent_planner
:
"
RRTStar"
prediction_horizon
:
1
# seconds
discretization_step
:
.2
# seconds
prediction_horizon
:
8
# seconds
discretization_step
:
1
# seconds
model_predictive_controller
:
Q
:
[
20
,
20
,
20
]
# state error cost for a differntial drive robot
Qf
:
[
30
,
30
,
30
]
# state final error cost for a differntial drive robot
R
:
[
10
,
10
]
# input cost for a differntial drive robot
P
:
[
10
,
10
]
# input rate of change cost for a differntial drive robot
P
:
[
10
,
10
]
# input rate of change cost for a differ
e
ntial drive robot
multi_robot_traj_opt
:
rob_dist_weight
:
10
...
...
@@ -23,23 +23,38 @@ environment:
x_range
:
[
0
,
640
]
y_range
:
[
0
,
480
]
robot_starts
:
robot_starts
:
-
[
10
,
10
,
0
]
-
[
600
,
300
,
0
]
robot_goals
:
robot_goals
:
-
[
600
,
300
,
0
]
-
[
10
,
10
,
0
]
robot_radii
:
-
10
-
10
-
10
-
10
-
10
-
10
-
10
-
10
-
10
-
10
target_v
:
3.0
dynamics_models
:
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
-
Roomba
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