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

Settings file missing "robotWheelbase" entry #919

Open
jmullins16 opened this issue Nov 29, 2024 · 2 comments
Open

Settings file missing "robotWheelbase" entry #919

jmullins16 opened this issue Nov 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jmullins16
Copy link

Describe the bug
Using PathPlannerLib "2025.0.0-beta-5" and PathPlanner app 2025.0.05 (1165), AutoBuilder failed to configure due to a missing JSON entry. robotWheelbase entry did not seem to be in the settings file, and when I added it (our robot is square), AutoBuilder configured fine.

Our beta robot project is located here in GitHub:
https://github.com/usfirst-frc-2135/robot2025/tree/main/Comp2024-Imported

The pathPlanner settings file stored in the repo has had this entry pasted in manually to make it work.

We are using the latest WPILib "2025.1.1-beta-1" and CTRE "25.0.0-beta-3".

To Reproduce
Steps to reproduce the behavior:

  1. Use our settings file from the repo in the application
  2. Re-deploy the settings
  3. robotWheelbase is missing from the settings file
  4. simulate the robot project, AutoBuilder fails with a stacktrace

Expected behavior
AutoBuilder configures correctly.

Screenshots
Error at com.pathplanner.lib.config.RobotConfig.fromGUISettings(RobotConfig.java:274): Failed to load PathPlanner config and configure AutoBuilder
at com.pathplanner.lib.config.RobotConfig.fromGUISettings(RobotConfig.java:274)
at frc.robot.subsystems.CommandSwerveDrivetrain.configureAutoBuilder(CommandSwerveDrivetrain.java:241)
at frc.robot.subsystems.CommandSwerveDrivetrain.(CommandSwerveDrivetrain.java:189)
at frc.robot.generated.TunerConstants.createDrivetrain(TunerConstants.java:188)
at frc.robot.RobotContainer.(RobotContainer.java:117)
at frc.robot.Robot.(Robot.java:24)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:301)
at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:418)
at java.base/java.lang.Thread.run(Thread.java:840)

Versions: (please complete the following information):

  • MacOS: 15.1.1 (24B91)
  • GUI Version:2025.0.05 (1165)
  • PPLib Version: 2025.0.0-beta-5
  • PPLib Language: Java

Additional context
Add any other context about the problem here.

@jmullins16 jmullins16 added the bug Something isn't working label Nov 29, 2024
@mjansen4857
Copy link
Owner

This indicates that you’re not actually using PPLib beta 5 since wheelbase is no longer included in setting which beta 5 is updated to not use. Make sure you’re updated. If you are and it’s still not working, try deleting your gradle cache and building again to force it to pull down the new version.

@jmullins16
Copy link
Author

jmullins16 commented Dec 2, 2024

Still not working for me.

I tried to make gradle with --refresh-dependencies which didn't help, and then just deleted the project .gradle folder entirely to make it rebuild.

Still fails with same error. Unless I'm not understanding how to make gradle pull the beta5 new version, I must be missing something else in the process. Is there a way to request the version from PPLib to confirm it?

Here is the vendordeps file for reference:

{
    "fileName": "PathplannerLib-beta.json",
    "name": "PathplannerLib",
    "version": "2025.0.0-beta-5",
    "uuid": "1b42324f-17c6-4875-8e77-1c312bc8c786",
    "frcYear": "2025",
    "mavenUrls": [
        "https://3015rangerrobotics.github.io/pathplannerlib/repo"
    ],
    "jsonUrl": "https://3015rangerrobotics.github.io/pathplannerlib/PathplannerLib-beta.json",
    "javaDependencies": [
        {
            "groupId": "com.pathplanner.lib",
            "artifactId": "PathplannerLib-java",
            "version": "2025.0.0-beta-5"
        }
    ],
    "jniDependencies": [],
    "cppDependencies": [
        {
            "groupId": "com.pathplanner.lib",
            "artifactId": "PathplannerLib-cpp",
            "version": "2025.0.0-beta-5",
            "libName": "PathplannerLib",
            "headerClassifier": "headers",
            "sharedLibrary": false,
            "skipInvalidPlatforms": true,
            "binaryPlatforms": [
                "windowsx86-64",
                "osxuniversal",
                "linuxx86-64",
                "linuxathena",
                "linuxarm32",
                "linuxarm64"
            ]
        }
    ]
}

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