2025-10-24 01:28:04 -04:00
|
|
|
extra_includes:
|
|
|
|
|
- PyTrajectoryConstraint.h
|
|
|
|
|
|
|
|
|
|
classes:
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::math::EllipticalRegionConstraint:
|
2025-10-24 01:28:04 -04:00
|
|
|
template_params:
|
|
|
|
|
- typename Constraint
|
|
|
|
|
typealias:
|
2025-11-07 20:00:05 -05:00
|
|
|
- wpi::math::TrajectoryConstraint::MinMax
|
2025-10-24 01:28:04 -04:00
|
|
|
methods:
|
|
|
|
|
EllipticalRegionConstraint:
|
|
|
|
|
overloads:
|
2025-11-07 20:00:05 -05:00
|
|
|
const Translation2d&, wpi::units::meter_t, wpi::units::meter_t, const Rotation2d&, const Constraint&:
|
2025-10-24 01:28:04 -04:00
|
|
|
const Ellipse2d&, const Constraint&:
|
|
|
|
|
MaxVelocity:
|
|
|
|
|
MinMaxAcceleration:
|
|
|
|
|
|
|
|
|
|
template_inline_code: |
|
|
|
|
|
cls_EllipticalRegionConstraint
|
2025-11-07 20:00:05 -05:00
|
|
|
.def_static("fromFeet", [](const Translation2d& center, wpi::units::foot_t xWidth,
|
|
|
|
|
wpi::units::foot_t yWidth, const Rotation2d& rotation,
|
2025-10-24 01:28:04 -04:00
|
|
|
const Constraint& constraint) {
|
|
|
|
|
return std::make_shared<EllipticalRegionConstraint<Constraint>>(center, xWidth, yWidth, rotation, constraint);
|
|
|
|
|
}, py::arg("center"), py::arg("xWidth"), py::arg("yWidth"), py::arg("rotation"), py::arg("constraint"))
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
templates:
|
|
|
|
|
EllipticalRegionConstraint:
|
2025-11-07 20:00:05 -05:00
|
|
|
qualname: wpi::math::EllipticalRegionConstraint
|
2025-10-24 01:28:04 -04:00
|
|
|
params:
|
2025-11-07 20:00:05 -05:00
|
|
|
- wpi::math::PyTrajectoryConstraint
|