Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuplan-devkit
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
Container 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
Eli Henry Dykhne
nuplan-devkit
Commits
a07e30e6
Commit
a07e30e6
authored
1 year ago
by
sacardoz
Browse files
Options
Downloads
Patches
Plain Diff
fix for the (really dumb) way idm planner handles velocity
parent
9025b33a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!21
Major changes. convert nuplan devkit to handle occlusions for project
,
!8
Shea multiagent rules
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nuplan/planning/simulation/observation/ml_planner_agents.py
+3
-3
3 additions, 3 deletions
nuplan/planning/simulation/observation/ml_planner_agents.py
with
3 additions
and
3 deletions
nuplan/planning/simulation/observation/ml_planner_agents.py
+
3
−
3
View file @
a07e30e6
...
...
@@ -221,7 +221,7 @@ class MLPlannerAgents(AbstractObservation):
# Most of this is just eyeballed, so there may be a more principled way of setting these values.
output
=
EgoState
.
build_from_center
(
center
=
agent
.
center
,
center_velocity_2d
=
agent
.
velocity
,
center_velocity_2d
=
agent
.
velocity
if
self
.
planner_type
!=
"
idm
"
else
StateVector2D
(
agent
.
velocity
.
magnitude
(),
0
)
,
center_acceleration_2d
=
StateVector2D
(
0
,
0
),
tire_steering_angle
=
0
,
time_point
=
time_point
,
...
...
@@ -361,7 +361,7 @@ class MLPlannerAgents(AbstractObservation):
return
None
def
_get_roadblock_path
(
self
,
agent
:
Agent
,
goal
:
StateSE2
,
max_depth
:
int
=
5
):
def
_get_roadblock_path
(
self
,
agent
:
Agent
,
goal
:
StateSE2
,
max_depth
:
int
=
10
):
start_edge
,
_
=
self
.
_get_target_segment
(
agent
.
center
,
self
.
_scenario
.
map_api
)
end_edge
,
_
=
self
.
_get_target_segment
(
goal
,
self
.
_scenario
.
map_api
)
...
...
@@ -384,7 +384,7 @@ class MLPlannerAgents(AbstractObservation):
return
route_plan
def
_extend_path
(
self
,
route_plan
:
List
[
str
],
min_path_length
:
5
):
def
_extend_path
(
self
,
route_plan
:
List
[
str
],
min_path_length
:
10
):
"""
Extends a route plan to a given depth by continually going forward.
"""
...
...
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