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

PathfindThenFollowPath Never Ends #991

Closed
Captagonal opened this issue Jan 9, 2025 · 1 comment · Fixed by #994
Closed

PathfindThenFollowPath Never Ends #991

Captagonal opened this issue Jan 9, 2025 · 1 comment · Fixed by #994
Labels
bug Something isn't working GUI Changes to the PathPlanner GUI PathPlannerLib Changes to PathPlannerLib
Milestone

Comments

@Captagonal
Copy link

Describe the bug
When using PathfindThenFollowPath it sometimes loop overruns when it starts the Joining Path (added in #956 ) and never follows the path. It gets stuck on the command with it never ending leading to me unable to access the drivetrain.

To Reproduce
Steps to reproduce the behavior:

  1. Take any example Swerve project (tested on yagsl and CTRE Tuner X generated)
  2. Make a small path (see images for mine)
  3. Run PathfindThenFollowPath on the path
  4. Sometimes when it creates the joining path it has a loop overrun error
    Warning at edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:436): Loop time of 0.02s overrun
  5. Now it is stuck running the PathfindThenFollowPath with it never ending leaving me unable to cancel the command or schedule a new one on the subsystem.

Expected behavior
It should path find to the path, run the path, and then have the command end so I can schedule new commands on the drivetrain.

Screenshots
Image of my path
image

Image of the generated joining path
image

Versions: (please complete the following information):

  • OS: [Windows 11]
  • GUI Version: [2025.1.1]
  • PPLib Version: [2025.1.1]
  • PPLib Language: [Java]
@Captagonal Captagonal added the bug Something isn't working label Jan 9, 2025
@mjansen4857 mjansen4857 added GUI Changes to the PathPlanner GUI PathPlannerLib Changes to PathPlannerLib labels Jan 10, 2025
@mjansen4857 mjansen4857 added this to the 2025.2 milestone Jan 10, 2025
@mjansen4857
Copy link
Owner

This is caused by the path failing to completely generate without something going NaN somewhere. I think I found the cause of that which should hopefully fix this issue.

@mjansen4857 mjansen4857 linked a pull request Jan 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI Changes to the PathPlanner GUI PathPlannerLib Changes to PathPlannerLib
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants