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

Added PhotonVision/Camera Usage #19

Closed
wants to merge 2 commits into from
Closed

Conversation

cool-cellist
Copy link
Contributor

ApriltagInfo.java

  • Uses an AprilTag ID to get its color and area of the field (coral feeder, algae procesor, etc.)
  • It also contains a PhotonTrackedTarget object for future positioning/alignment code

Camera.java

  • Contains PhotonVision objects and camera placement info
  • Added to make the computer vision code more modular
  • Need to fill in the coordinates and rotation of each camera after the robot has been built

CameraUtilities.java

  • updateVisionWithCamera(Camera camera, SwerveDrivePoseEstimator m_odometry) Updates the odometry of the given drivetrain using a camera
  • doAprilTagTask(Camera cam, Area taskArea) Uses a camera to see if we can do the given task (alignment/positioning)
  • will fill in the empty methods for alignment/positioning within the different areas of the field

Miscellaneous

  • Three .json files for: PhotonLib 2025, AdvantageKit, and Phoenix 6

@cool-cellist cool-cellist self-assigned this Jan 11, 2025
@cool-cellist cool-cellist linked an issue Jan 12, 2025 that may be closed by this pull request
Copy link
Collaborator

@Ferris-Bueller7 Ferris-Bueller7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix commenting.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Java docs on methods please go through and make sure all methods and constructors have appropriate java docs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Java docs on methods please go through and make sure all methods and constructors have appropriate java docs.

Minor improvements to readability

Added Comments

FIxed bracket formatting and javadocs commenting
…gle command, added AprilTag alignment code, and did some refactoring changes
@cool-cellist cool-cellist changed the title Added AprilTagInfo class, Camera class, and CameraUtilities class Added PhotonVision/Camera Usage Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate PhotonVision Localization
3 participants