Skip to content

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