Skip to content

Conversation

@minhlpnguyen
Copy link
Contributor

What kind of screenshot would you like as evidence? I think the estimates for seeded setpoints might be off but the framework is hopefully done!

@minhlpnguyen minhlpnguyen linked an issue Apr 1, 2025 that may be closed by this pull request
@linglejack06
Copy link
Contributor

What kind of screenshot would you like as evidence? I think the estimates for seeded setpoints might be off but the framework is hopefully done!

@minhnguyenbhs maybe featureflag off vision (if thats possible?) and then run an auto without it in sim and video the proof

Copy link
Contributor

@linglejack06 linglejack06 left a comment

Choose a reason for hiding this comment

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

this looks great, i can approve as long as we have some sort of visual proof or we test in shop. But code implementation looks good to me other than the numbers regarding flipping pose (there might actually be a flip pose method too? not sure)

&& DriverStation.getAlliance().get() == Alliance.Blue) {
startPose =
new Pose2d(
17.5 - startPose.getX(),
Copy link
Contributor

Choose a reason for hiding this comment

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

i think the 17.5 should be 17.3736 for full accuracy? same with the 8 (should be 7.9248)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh i don't super know how to provide visual proof :( this was with the camera off? green is where the robot thinks it is (I can fix maplesim too if that's a high priority)

image

Copy link
Contributor

Choose a reason for hiding this comment

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

MapleSim vision is bad due to a stupid mistake I made

Copy link
Contributor

Choose a reason for hiding this comment

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

maplesim vision uses odometry position for one camera and maplesim position for the other camera

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh this doesn't use camera though so that's ok :D although I can fix that as part of this branch if you want

Copy link
Contributor

Choose a reason for hiding this comment

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

maplesim vision uses odometry position for one camera and maplesim position for the other camera

@avidraccoon I actually fixed this in #223

Copy link
Contributor

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

first round feedback

@@ -1,5 +1,8 @@
{
"runDrive": true,
"runVision": false,
Copy link
Contributor

Choose a reason for hiding this comment

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

note: we need to turn this back on before merging

Units.inchesToMeters(12.0),
new Rotation3d(0, 0, 0));

public final Integer safetyThreshold = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we rename this something like "minimumVisionMeasurementInitCount" or similar to indicate that this is a counter of how many vision measurements we need to trust that the robot is in the correct location?

Comment on lines +450 to +453
new Pose2d(
17.3736 - startPose.getX(),
7.9248 - startPose.getY(),
new Rotation2d(startPose.getRotation().getRadians() - Math.PI / 2));
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add verification that this works when we are on the blue alliance? I think a screenshot of where the robot thinks it starts in auto would be fine for this for blue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

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.

Seed start position and rotation in auto

5 participants