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

Fixed bug in PRM #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kjartan-at-tec
Copy link

In the step of the PRM when the road map is created, the new vertice is added to the graph, and then the graph is investigated to find all vertices within a certain distance from the new vertice. This function will then also return the newly added vertice. As a result the set of edges will include edges of length zero from each vertice to itself. Later this becomes an issue when querying the road map: The returned path is certainly not optimal, as it should be, since the algorithm used is A*.

The pull request fixes this bug, by simply getting the closest vertices BEFORE adding the new vertice to the graph.

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