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

Divide by zero error in Python lib using AutoBuilder.pathFindThenFollowPath #1028

Open
roberttuttle opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@roberttuttle
Copy link

Describe the bug
Divide by zero error in Python lib using AutoBuilder.pathFindThenFollowPath

Expected behavior
Calculations for chassis speeds catch and handle division by zero potental

Versions: (please complete the following information):

  • OS: [e.g. Windows 11]
  • GUI Version: [e.g. 2025.2.1]
  • PPLib Version: [e.g. 2025.2.1]
  • PPLib Language: [e.g. Python]

Additional context
 File "/usr/local/lib/python3.13/site-packages/pathplannerlib/path.py", line 815, in generateTrajectory 
 return PathPlannerTrajectory(self, starting_speeds, starting_rotation, config) 
 File "/usr/local/lib/python3.13/site-packages/pathplannerlib/trajectory.py", line 256, in init 
 chassisAccelX = (robotSpeeds.vx - prevRobotSpeeds.vx) / dt 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 
 ZeroDivisionError: float division by zero

@roberttuttle roberttuttle added the bug Something isn't working label Jan 24, 2025
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

1 participant