mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[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:
49
wpimath/src/main/python/semiwrap/geometry/Transform3d.yml
Normal file
49
wpimath/src/main/python/semiwrap/geometry/Transform3d.yml
Normal 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);
|
||||
Reference in New Issue
Block a user