'pathplannerlib' has no attribute 'HolonomicPathFollowerConfig'

After getting our swerve teleop and auto with setpoints functioning, I was trying to use pathplanner to improve our autos. I started changing our code, I installed pathplanner both from the instructions on robotpy, as well as the instructions from the PathPlannerLibDocs. I was able to use classes and code normally with intellisense, but when I tried to deploy to sim or to the robot, I get

pathFollowerConfig = pathplannerlib.HolonomicPathFollowerConfig( AttributeError: module 'pathplannerlib' has no attribute 'HolonomicPathFollowerConfig'.

I find it odd that intellisense worked but the code didn’t deploy. It seems it must be on the computer side given it also doesn’t run through sim. When I run pip freeze, I see the correct version of PathplannerLIb as robotpy-pathplannerlib==2024.0.0b6.post2 though so I’m not sure what’s the issue.

Code is here

All help is greatly appreciated,
Asher L
4169

It appears that in the new pathplannerlib that class is at pathplannerlib.config.HolonomicPathFollowerConfig: pathplanner/pathplannerlib-python/pathplannerlib/config.py at 8e1a4bc08adbf19d7a359d85e0a905fad7b7d86e · mjansen4857/pathplanner · GitHub

Thank you, just a dumb mistake by me

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.