[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,49 @@
extra_includes:
- rpy/geometryToString.h
- wpystruct.h
classes:
frc::Transform3d:
methods:
Transform3d:
overloads:
const Pose3d&, const Pose3d&:
keepalive: []
Translation3d, Rotation3d:
units::meter_t, units::meter_t, units::meter_t, Rotation3d:
const Eigen::Matrix4d&:
rename: fromMatrix
keepalive: []
'':
const frc::Transform2d&:
keepalive: []
Translation:
X:
Y:
Z:
ToMatrix:
Rotation:
Inverse:
operator*:
operator/:
operator+:
operator==:
inline_code: |
cls_Transform3d
.def_property_readonly("x", &Transform3d::X)
.def_property_readonly("y", &Transform3d::Y)
.def_property_readonly("z", &Transform3d::Z)
.def_property_readonly("x_feet", [](const Transform3d * self) -> units::foot_t {
return self->X();
})
.def_property_readonly("y_feet", [](const Transform3d * self) -> units::foot_t {
return self->Y();
})
.def_property_readonly("z_feet", [](const Transform3d * self) -> units::foot_t {
return self->Z();
})
.def("__repr__", py::overload_cast<const Transform3d&>(&rpy::toString));
SetupWPyStruct<frc::Transform3d>(cls_Transform3d);