Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lane error penalty #2030

Merged
merged 4 commits into from
May 25, 2023
Merged

Add lane error penalty #2030

merged 4 commits into from
May 25, 2023

Conversation

Adaickalavan
Copy link
Member

Here, the goal is on lane 0 but ego terminates on lane 2.

end_episode

  • Previously, the DistToDestination cost == dist_along_road which is 0 in this situation.
  • Now, the DistToDestination cost == dist_along_road + lane_error*lane_width in this situation.

Changes made:

  1. RoadMap.Route now optionally stores the start and end lanes of the route.
  2. DistToDestination metric now adds lane error penalty when agent terminates in different lane but same road as the goal position.

smarts/core/route_cache.py Outdated Show resolved Hide resolved
smarts/core/road_map.py Outdated Show resolved Hide resolved
@Adaickalavan Adaickalavan merged commit 5aa62f4 into master May 25, 2023
@Adaickalavan Adaickalavan deleted the improve-dist-metric branch May 25, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants