[robotpy] Mirror most other subprojects (#8208)

GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a

This mirrors the robotpy files for the following projects:
- apriltag
- datalog
- hal
- ntcore
- romiVendordep
- wpilibc
- wpimath
- xrpVendordep

This excludes cscore and the halsim wrappers for at this time.

NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
PJ Reiniger
2025-10-24 01:28:04 -04:00
committed by GitHub
parent 8992dcdc99
commit 44b9cc1398
545 changed files with 27293 additions and 38 deletions

View File

@@ -0,0 +1,34 @@
defaults:
subpackage: constraint
extra_includes:
- PyTrajectoryConstraint.h
classes:
frc::EllipticalRegionConstraint:
template_params:
- typename Constraint
typealias:
- frc::TrajectoryConstraint::MinMax
methods:
EllipticalRegionConstraint:
overloads:
const Translation2d&, units::meter_t, units::meter_t, const Rotation2d&, const Constraint&:
const Ellipse2d&, const Constraint&:
MaxVelocity:
MinMaxAcceleration:
template_inline_code: |
cls_EllipticalRegionConstraint
.def_static("fromFeet", [](const Translation2d& center, units::foot_t xWidth,
units::foot_t yWidth, const Rotation2d& rotation,
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:
qualname: frc::EllipticalRegionConstraint
params:
- frc::PyTrajectoryConstraint