Skip to content

records#10

Closed
Ishan1522 wants to merge 2 commits intomainfrom
records
Closed

records#10
Ishan1522 wants to merge 2 commits intomainfrom
records

Conversation

@Ishan1522
Copy link
Copy Markdown
Contributor

start implementing records into PoseEstimate and such

@Ishan1522 Ishan1522 linked an issue Feb 25, 2025 that may be closed by this pull request
@JosephTLockwood
Copy link
Copy Markdown
Contributor

I'm unsure if you want potential help with this, but splitting PoseEstimate into two records makes things much more manageable. Most things should be here with the needed logic.

A few changes to what we have would be.

  1. The only change required is to change AngularVelocity to a double, as AKit doesn't accept AngularVelocity inside a record.
  2. Redo setVisionParams to something that makes more sense like withDriveInputs. Adding this input is helpful as you can filter after the IO layer and test different things in the replay.

@Ishan1522
Copy link
Copy Markdown
Contributor Author

Idk how much time I'll have to actually finish this up, if you want to move your changes here it would definitely be much appreciated

Comment thread TigerHelpers.java
this.avgTagArea = 0;
this.rawFiducials = new RawFiducial[] {};
this.isMegaTag2 = false;
this(new Pose2d(), 0, 0, 0, 0, 0, 0, new RawFiducial[0], false);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lol idk why i didnt do this

Comment thread TigerHelpers.java
*
* @return a PoseEstimate with default values
*/
public static PoseEstimate empty() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this necessary?

@Ishan1522 Ishan1522 closed this Mar 2, 2025
@Ishan1522 Ishan1522 deleted the records branch March 4, 2025 16:20
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.

Add records to TigerHelpers

3 participants