-
Notifications
You must be signed in to change notification settings - Fork 272
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
Update Swerve Simulation Support Status #2406
Comments
FWIW pyfrc's physics module includes a 'perfect' four motor swerve drivetrain object for simulation. https://github.com/robotpy/pyfrc/blob/b8472df58739031b60c384f3304c6cb56e582f19/pyfrc/physics/drivetrains.py#L318 |
That looks like what the SwerveDriveKinematics class already does. |
Are you talking about this? Are you just saying that all of the "math" is already there? I was suggesting that there should be a SwerveDrivetrainSim similar to how there is a DifferentialDrivetrainSim |
Yes.
We could, though it'll just be a thin wrapper around SwerveDriveKinematics. |
Maple-sim implements swerve drive simulation, so we could link there instead of implementing it in WPILib. |
This article references this PR which has been closed. We should update it to reflect our current thoughts on swerve simulation.
IMO we should think about including "perfect" swerve simulation. While it isn't accurate for testing real world effects of swerve it is extremely useful for testing things like basic driver control and automated pathing.
The text was updated successfully, but these errors were encountered: