Hello!
This year we have been exploring the use of PathPlanner and getting used to it’s new features and new overall look. One problem that we are running into is when we try to run a path that comes back to its original position it is not where the robot started. We have tried running the path at various different speeds and we are running the Rev MaxSwerve drivetrain. Here is a video example of what I am talking about:
The Path
I have tried to tweak a lot of little things, but the path is always off by about the same amount(which is usually a bit more than seen in the video I provided). As seen in the video as well, the white outline of the actual odometry seems to overlap with the gray outline of the desired odometry which makes me believe that maybe the odometry drifted(but how can I account for or compensate for this?). Here is the code that I am using(It currently uses a SwervePoseEstimator but also have used normal SwerveDriveOdometry):
github
Any help would be greatly appreciated, and if anyone else has had any issues like this please let me know how you have approached these problems.