mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01: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:
50
wpimath/src/main/python/semiwrap/geometry/Quaternion.yml
Normal file
50
wpimath/src/main/python/semiwrap/geometry/Quaternion.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
extra_includes:
|
||||
- rpy/geometryToString.h
|
||||
- wpystruct.h
|
||||
|
||||
functions:
|
||||
to_json:
|
||||
ignore: true
|
||||
from_json:
|
||||
ignore: true
|
||||
classes:
|
||||
frc::Quaternion:
|
||||
methods:
|
||||
Quaternion:
|
||||
overloads:
|
||||
'':
|
||||
double, double, double, double:
|
||||
operator+:
|
||||
operator-:
|
||||
operator*:
|
||||
overloads:
|
||||
double [const]:
|
||||
const Quaternion& [const]:
|
||||
operator/:
|
||||
operator==:
|
||||
Dot:
|
||||
Conjugate:
|
||||
Inverse:
|
||||
Normalize:
|
||||
Norm:
|
||||
Pow:
|
||||
Exp:
|
||||
overloads:
|
||||
const Quaternion& [const]:
|
||||
'[const]':
|
||||
Log:
|
||||
overloads:
|
||||
const Quaternion& [const]:
|
||||
'[const]':
|
||||
W:
|
||||
X:
|
||||
Y:
|
||||
Z:
|
||||
ToRotationVector:
|
||||
FromRotationVector:
|
||||
|
||||
inline_code: |
|
||||
cls_Quaternion
|
||||
.def("__repr__", py::overload_cast<const Quaternion&>(&rpy::toString));
|
||||
|
||||
SetupWPyStruct<frc::Quaternion>(cls_Quaternion);
|
||||
Reference in New Issue
Block a user