mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +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:
@@ -0,0 +1,10 @@
|
||||
classes:
|
||||
frc::CubicHermiteSpline:
|
||||
force_no_trampoline: true
|
||||
methods:
|
||||
CubicHermiteSpline:
|
||||
Coefficients:
|
||||
# otherwise we have to depend on numpy
|
||||
ignore: true
|
||||
GetInitialControlVector:
|
||||
GetFinalControlVector:
|
||||
@@ -0,0 +1,9 @@
|
||||
classes:
|
||||
frc::QuinticHermiteSpline:
|
||||
force_no_trampoline: true
|
||||
methods:
|
||||
QuinticHermiteSpline:
|
||||
Coefficients:
|
||||
ignore: true
|
||||
GetInitialControlVector:
|
||||
GetFinalControlVector:
|
||||
49
wpimath/src/main/python/semiwrap/spline/Spline.yml
Normal file
49
wpimath/src/main/python/semiwrap/spline/Spline.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
extra_includes:
|
||||
- pybind11/stl.h
|
||||
|
||||
classes:
|
||||
frc::Spline:
|
||||
is_polymorphic: true
|
||||
force_type_casters:
|
||||
- units::curvature_t
|
||||
- wpi::array
|
||||
template_params:
|
||||
- int Degree
|
||||
methods:
|
||||
Spline:
|
||||
GetPoint:
|
||||
Coefficients:
|
||||
ignore_pure: true
|
||||
GetInitialControlVector:
|
||||
ignore_pure: true
|
||||
GetFinalControlVector:
|
||||
ignore_pure: true
|
||||
ToVector:
|
||||
ignore: true
|
||||
FromVector:
|
||||
ignore: true
|
||||
template_inline_code: |
|
||||
cls_ControlVector
|
||||
.def(
|
||||
py::init<
|
||||
wpi::array<double, (Degree + 1) / 2>,
|
||||
wpi::array<double, (Degree + 1) / 2>>(),
|
||||
py::arg("x"),
|
||||
py::arg("y")
|
||||
);
|
||||
frc::Spline::ControlVector:
|
||||
force_no_default_constructor: true
|
||||
attributes:
|
||||
x:
|
||||
y:
|
||||
|
||||
templates:
|
||||
Spline3:
|
||||
qualname: frc::Spline
|
||||
params:
|
||||
- 3
|
||||
|
||||
Spline5:
|
||||
qualname: frc::Spline
|
||||
params:
|
||||
- 5
|
||||
8
wpimath/src/main/python/semiwrap/spline/SplineHelper.yml
Normal file
8
wpimath/src/main/python/semiwrap/spline/SplineHelper.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
classes:
|
||||
frc::SplineHelper:
|
||||
methods:
|
||||
CubicControlVectorsFromWaypoints:
|
||||
QuinticSplinesFromWaypoints:
|
||||
CubicSplinesFromControlVectors:
|
||||
QuinticSplinesFromControlVectors:
|
||||
OptimizeCurvature:
|
||||
@@ -0,0 +1,13 @@
|
||||
classes:
|
||||
frc::SplineParameterizer:
|
||||
force_no_default_constructor: true
|
||||
force_type_casters:
|
||||
- units::curvature_t
|
||||
methods:
|
||||
Parameterize:
|
||||
template_impls:
|
||||
- ['3']
|
||||
- ['5']
|
||||
|
||||
frc::SplineParameterizer::MalformedSplineException:
|
||||
ignore: true
|
||||
Reference in New Issue
Block a user