2025-10-24 01:28:04 -04:00
|
|
|
classes:
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::math::SwerveDriveKinematicsConstraint:
|
2025-10-24 01:28:04 -04:00
|
|
|
template_params:
|
|
|
|
|
- size_t NumModules
|
|
|
|
|
typealias:
|
2025-11-07 20:00:05 -05:00
|
|
|
- wpi::math::TrajectoryConstraint::MinMax
|
2025-10-24 01:28:04 -04:00
|
|
|
methods:
|
|
|
|
|
SwerveDriveKinematicsConstraint:
|
|
|
|
|
MaxVelocity:
|
|
|
|
|
MinMaxAcceleration:
|
|
|
|
|
template_inline_code: |
|
|
|
|
|
cls_SwerveDriveKinematicsConstraint
|
2025-11-07 20:00:05 -05:00
|
|
|
.def_static("fromFps", [](const wpi::math::SwerveDriveKinematics<NumModules>& kinematics,
|
2026-03-06 14:19:15 -08:00
|
|
|
wpi::units::feet_per_second_t maxVelocity) {
|
|
|
|
|
return std::make_shared<wpi::math::SwerveDriveKinematicsConstraint<NumModules>>(kinematics, maxVelocity);
|
|
|
|
|
}, py::arg("kinematics"), py::arg("maxVelocity"))
|
2025-10-24 01:28:04 -04:00
|
|
|
;
|
|
|
|
|
|
|
|
|
|
templates:
|
|
|
|
|
SwerveDrive2KinematicsConstraint:
|
2025-11-07 20:00:05 -05:00
|
|
|
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
2025-10-24 01:28:04 -04:00
|
|
|
params:
|
|
|
|
|
- 2
|
|
|
|
|
SwerveDrive3KinematicsConstraint:
|
2025-11-07 20:00:05 -05:00
|
|
|
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
2025-10-24 01:28:04 -04:00
|
|
|
params:
|
|
|
|
|
- 3
|
|
|
|
|
SwerveDrive4KinematicsConstraint:
|
2025-11-07 20:00:05 -05:00
|
|
|
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
2025-10-24 01:28:04 -04:00
|
|
|
params:
|
|
|
|
|
- 4
|
|
|
|
|
SwerveDrive6KinematicsConstraint:
|
2025-11-07 20:00:05 -05:00
|
|
|
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
2025-10-24 01:28:04 -04:00
|
|
|
params:
|
|
|
|
|
- 6
|