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

Fix waypoints next and previous when connecting two lines with opposite directions #7137

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matejm42
Copy link
Contributor

@matejm42 matejm42 commented Feb 8, 2024

Description

Fixing issue #7136 - detailed description there

Fix waypoints next and previous when connecting two lines with opposite directions.

Probably not the best solution, but it works for our case. The waypoint that would cause conflict when calling next from it is not returned.

Where has this been tested?

  • Platform(s): Ubuntu 20.24
  • Python version(s): 3.8 and 3.11.6
  • Unreal Engine version(s): 4.26

Possible Drawbacks

Loading maps and getting waypoints from long distances can be a bit slower. However I did not experience any decrease in performance in my case.

You can not get the next waypoint, if calling next from that waypoint would cause a loop. (We found this situation only on curbs connecting two lanes in opposite directions. In this case, it makes sense for us to behave as if the curbs are not connected together. Hopefully, there are no opposite-direction driving lanes connected together.

dirrections.

Fixing issue carla-simulator#7136

Probably not the best solution, but works for our case. The waypoint
that would cause conflict when calling next from it is not returned.
@matejm42 matejm42 requested a review from a team as a code owner February 8, 2024 21:11
Copy link

update-docs bot commented Feb 8, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update our CHANGELOG.md based on your changes.

@matejm42 matejm42 changed the title Fix waypoints next and previous when connecting two lines with opposite dirrections Fix waypoints next and previous when connecting two lines with opposite directions Feb 8, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Michal Sojka <michal.sojka@cvut.cz>
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.

None yet

2 participants