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

PathfindingCommand Ends Prematurely #920

Open
PickleFace5 opened this issue Dec 2, 2024 · 1 comment
Open

PathfindingCommand Ends Prematurely #920

PickleFace5 opened this issue Dec 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@PickleFace5
Copy link
Contributor

Describe the bug
When Pathfinding to a path, during the PathfindingCommand, the robot will simply stop after a few seconds.

After some digging, it seems to be an issue relating to how the isFinished method for the command is calculated, mainly with the return statement on line 367 (for Python). Upon removing this line, the issue resolves itself, so I believe the implementation of stoppingDistance is incorrect here.

After looking at the same methods in Java and C++, it seems this issue may be present in all languages of PPLib.

To Reproduce
Steps to reproduce the behavior:

  1. Run a AutoBuilder.pathfindThenFollowPath command.
  2. Observe how it stops early.

Expected behavior
The robot is supposed to pathfind without any stopping to the start of the path, then seamlessly execute the path.

Versions: (please complete the following information):

  • OS: Windows 11
  • GUI Version: 2025.0.0-beta-5
  • PPLib Version: 2025.0.0b5
  • PPLib Language: Python

Additional context
The repository I have used for testing and encountering this bug can be found here.

@PickleFace5 PickleFace5 added the bug Something isn't working label Dec 2, 2024
@PickleFace5 PickleFace5 changed the title [Python] PathfindingCommand Ends Prematurely PathfindingCommand Ends Prematurely Dec 2, 2024
@mjansen4857
Copy link
Owner

This sounds like it’s probably due to path replanning being removed, since the transition between pathfinding and the path depended on it.

I need to play around with it to see if there’s a way to smooth that transition without replanning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants