-
Notifications
You must be signed in to change notification settings - Fork 0
Seed start position in auto #224
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
base: main
Are you sure you want to change the base?
Conversation
…ramework is there?
@minhnguyenbhs maybe featureflag off vision (if thats possible?) and then run an auto without it in sim and video the proof |
linglejack06
left a comment
There was a problem hiding this 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(), |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
jkleiber
left a comment
There was a problem hiding this 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, | |||
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
| new Pose2d( | ||
| 17.3736 - startPose.getX(), | ||
| 7.9248 - startPose.getY(), | ||
| new Rotation2d(startPose.getRotation().getRadians() - Math.PI / 2)); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…//github.com/team401/2025-Robot-Code into 202-seed-start-position-and-rotation-in-auto


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!