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

Auto-detect if routing can be skipped #1421

Open
behrisch opened this issue May 29, 2024 · 1 comment
Open

Auto-detect if routing can be skipped #1421

behrisch opened this issue May 29, 2024 · 1 comment

Comments

@behrisch
Copy link
Contributor

The current routing engine can not only give the shortest path but also a guarantee that the second shortest path is at least x meters longer. If we assume that the underlying geometry has not changed (and of course the target is still the same), we can use this value to determine if routing is actually necessary.

The idea is to store the previous position of the agent and the gap to the second longest walk x. We can then calculate how much the distance to the next point in the current shortest path decreased (let's say s) and we know the absolute distance traveled since the last routing (let's say d). So if s + x > d we don't need to do a routing.

@Ozaq
Copy link
Contributor

Ozaq commented May 31, 2024

Lets discuss this in #1392

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

No branches or pull requests

2 participants