DoF-6413 / chargedUp

Code base for 2023 season DOF
MIT License
3 stars 1 forks source link

odometry and pose estimation #23

Closed nancyesquivel10 closed 1 year ago

J-Palomino commented 1 year ago

This is the tutorial on setting up the 2d widget for pose estimation: https://docs.wpilib.org/en/stable/docs/software/dashboards/glass/field2d-widget.html

This is where we can find the import for odometry for differential drivetrains: https://github.com/wpilibsuite/allwpilib/blob/a610379965680a8f9214d5f0db3a8e1bc20d4712/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/ramsetecontroller/Drivetrain.java#L11

here is this years field image: https://github.com/wpilibsuite/allwpilib/blob/main/fieldImages/src/main/native/resources/edu/wpi/first/fields/2023-field.png

Lines 107-125 show the pose getters and setters: https://github.com/wpilibsuite/allwpilib/blob/a610379965680a8f9214d5f0db3a8e1bc20d4712/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/ramsetecontroller/Drivetrain.java#L103

nancyesquivel10 commented 1 year ago
nancyesquivel10 commented 1 year ago

robot pose https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/differential-drive-odometry.html ramset command https://github.com/mjansen4857/pathplanner/blob/main/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PPRamseteCommand.java Diff drive Odometry example https://github.com/wpilibsuite/allwpilib/blob/main/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/differentialdrivebot/Drivetrain.java Pathplanner java usage https://github.com/mjansen4857/pathplanner/wiki/PathPlannerLib:-Java-Usage