Open jcorcoran opened 8 months ago
I had a drive failure a few weeks ago and have been working on trying to restore the data, but ended up having a lot of issues along the way. It will probably take at least a few more weeks until I get all the parts necessary to restore it. In the mean time, it is available directly here, and you could also use a service such as Gitpack. I apologize for the confusion.
How would I go about installing the library manually? The maven repository is still offline unfortunately.
There are a couple options. You can download a compiled jar here and add it to your dependencies. This exact process will depend on the IDE/build system you are using, but it should be fairly easy. Here's gradle.
You can also use GitHub's package repository here, however this can be annoying as you need to authenticate your requests to it with an API token from your account.
Finally, you could also just copy paste the code into your project, although I wouldn't really recommend this option as it's more difficult to maintain.
I cannot make guaranteed promises at this point, but I hope that I'll have all my old services restored by the end of April. Unfortunately, all of this stuff was basically run for my hobby purposes, but since losing my data, I've realized the importance in making sure it's resilient and secure, and I've had to spend a lot of time relearning everything the proper way to make sure it never happens again.
Okay thank you for your help! I appreciate you putting so much time and effort into maintaining this after all these years.
@jsmith128 If it helps, I attempted to get a maven repo setup to no avail after the suggestion was made. I don't use maven enough to know what I was doing wrong, so pivot to quick & dirty
I ended up just copying the source directly into our project.
And then making some changes to handle the 2024 lib changes:
We didn't end up using the pixy for too long, but the code seemed to work for getting target position metrics
There could be issues I'm unaware of
Also, thanks @PseudoResonance for the help and work on this lib
Thanks @jcorcoran!
I ended up getting it working by putting the pixy2-java-api.jar
file into a new folder project_root/libs
, and then adding the following line into build.gradle under the depedencies {}
block.
implementation fileTree(dir: 'libs', include: ['*.jar'])
And then simply importing like any other library import io.github.pseudoresonance.pixy2api.Pixy2;
It should be worth noting that we haven't actually tested it on our robot yet, so we may need to do it your way with the code changes!
Thanks to the merging of #17, you can now use jitpack's maven repo to get this dependency to your project with the maven string 'com.github.PseudoResonance:Pixy2JavaAPI:dd753b74d4'
and the repository maven { url 'https://jitpack.io' }
: see the commit-locked jitpack for more info: https://jitpack.io/#PseudoResonance/Pixy2JavaAPI/dd753b74d4
Attempting to build now w/ wpilib 2024 project.
It looks like the maven repo is offline: