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

Fix PathPlannerTrajectoryState error in Python #880

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

bhall-ctre
Copy link
Contributor

@bhall-ctre bhall-ctre commented Oct 22, 2024

The current code raises the following error:

  File "C:\Users\bhall\AppData\Roaming\Python\Python313\site-packages\pathplannerlib\trajectory.py", line 27, in <module>
    @dataclass
     ^^^^^^^^^
ValueError: mutable default <class 'wpimath.kinematics._kinematics.ChassisSpeeds'> for field fieldSpeeds is not allowed: use default_factory

@github-actions github-actions bot added the PathPlannerLib Changes to PathPlannerLib label Oct 22, 2024
@mjansen4857 mjansen4857 merged commit 39b4db1 into mjansen4857:main Oct 22, 2024
23 of 24 checks passed
@bhall-ctre bhall-ctre deleted the patch-1 branch October 22, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PathPlannerLib Changes to PathPlannerLib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants