Advantage kit error

I try to use Advantage kit version 2.2.4 on a robot and get this error when I try to build/deploy the code:
Could not find or load main class org.littletonrobotics.junction.CheckInstall
does anyone know what’s the problem?

AdvantageKit 2.2.4 is a 2023 version, and the current documentation on GitHub is for the 2024 beta versions. The installation steps for 2023 and 2024 are different. You can find the documentation for AdvantageKit 2023 here, including the installation guide. When following those instructions, you’ll just need to replace the vendordep URL with:

https://github.com/Mechanical-Advantage/AdvantageKit/releases/download/v2.2.4/AdvantageKit.json

Alternatively, if this is a new project you may find it easier to download one of the example projects from the GitHub release.

2 Likes

Thank you very much!
it worked!

1 Like

hello again, I want to try and use the 2024 version, but when I do just like the example and try to log a Pose2d object I get a weird value as an array of hex numbers.
do you know how to solve it?

Logging a Pose2d works by saving it in a binary format to the log and then decoding it in AdvantageScope. You should see a dropdown like this where you can view the individual components of the pose.

Screenshot 2023-12-12 at 1.06.14 PM

If you’re not seeing that, you may be running an outdated version of AdvantageScope. You can check the installed version under “Help” > “About AdvantageScope” (or “AdvantageScope” > “About AdvantageScope” on macOS). The latest version is v3.0.0-beta-5. Hope this helps.

Thanks!
Everything works fine.

Hy, I tried to use advantage scope live while I run a robot and log the position of the robot as a Pose2d object, but it doesn’t read the Pose2d object as it should and doesn’t display the robot on the field in the odometry tab.
Is it possible or am I doing something wrong?

It would be helpful if you describe how AdvantageScope is not “reading the Pose2d object as it should.” What do you see in the sidebar for the Pose2d field?

Just the name of the field, usually it says Pose2d next to it.

I’ll need some more information to help debug. Could you send:

  • The WPILib and AdvantageKit versions from your robot code
  • The contents of the “About” menu in AdvantageScope, which includes several version numbers (see my previous messages for where to find the about window)
  • A screenshot of the preferences window in AdvantageScope

Thanks! There have been lots of changes related to structs and NT throughout the beta, so this information is very helpful.

Sorry for the delay in answer
I was busy the last weeks and only got back to this yesterday,
when I updated everything to the kickoff version (non beta) it worked fine.
Thank you for your help!

1 Like

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