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

Solve the problem that JPS cannot be visualized in the latest released version(0.4.17) #202

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

Conversation

yu2014ol
Copy link

In the latest release, JPS's visualization program cannot run correctly. After debugging in the browser, I found that the problem came from pannel.js:

case 'jump_point_header':
    trackRecursion = typeof $('#jump_point_section ' +
                             '.track_recursion:checked').val() !== 'undefined';
    heuristic = $('input[name=jump_point_heuristic]:checked').val();
    
    finder = new PF.JumpPointFinder({
      trackJumpRecursion: trackRecursion,
      heuristic: PF.Heuristic[heuristic],
      diagonalMovement: PF.DiagonalMovement.IfAtMostOneObstacle
    });
    break;

In the following line, the browser cannot recognize the diagonalMovement attribute of PF:

diagonalMovement: PF.DiagonalMovement.IfAtMostOneObstacle

So I suspect it is a compilation problem. I recompiled and generated pathfinding-browser.min, using the following tool versions.

node version: 11.15.0
gulp-cli version: 2.3.0

According to my test, the visualization problem has been solved so far.

node version: 11.15.0
gulp-cli version: 2.3.0
@yu2014ol yu2014ol changed the title Compile and generate this file with version 0.4.17 Solve the problem that JPS cannot be visualized in the latest released version(0.4.17) Dec 17, 2021
Copy link

@grisrobotics grisrobotics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

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.

2 participants