Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion subprojects/robotpy-wpilib/semiwrap/Color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ inline_code: |
^ (std::hash<double>{}(self->green) << 1)
^ (std::hash<double>{}(self->blue) << 2)
);
return h != -1 ? h : -2;
return h != static_cast<size_t>(-1) ? h : -2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad. Now I wonder if pybind11 handles this pitfall for you.

})
.def("__repr__", [](Color *self) {
return "Color("
Expand Down
2 changes: 2 additions & 0 deletions subprojects/robotpy-wpimath/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ update_init = [
"wpimath.estimator wpimath._controls._controls.estimator",
"wpimath.filter",
"wpimath.geometry",
"wpimath.kinematics",
"wpimath.interpolation",
"wpimath.optimization wpimath._controls._controls.optimization",
"wpimath.path wpimath._controls._controls.path",
"wpimath.spline",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
defaults:
subpackage: controller

classes:
frc::DifferentialDriveFeedforward:
force_type_casters:
Expand Down
3 changes: 3 additions & 0 deletions subprojects/robotpy-wpimath/tests/cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ license = "BSD-3-Clause"
[tool.hatch.build.hooks.meson]

[tool.semiwrap]
update_init = [
"wpimath_test wpimath_test._wpimath_test",
]

[tool.semiwrap.extension_modules."wpimath_test._wpimath_test"]
name = "wpimath_test"
Expand Down
10 changes: 7 additions & 3 deletions subprojects/robotpy-wpimath/tests/cpp/semiwrap/module.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---

classes:
SomeClass:
attributes:
kDefaultPeriod:
five_ft:
s_constant:
ms_constant1:
ms_constant2:
ms_constant3:
methods:
checkDefaultByName:
checkDefaultByNum1:
param_override:
period:
Expand All @@ -17,3 +18,6 @@ classes:
default: 0.050_s
ms2s:
ft2m:
checkDefaultByName1:
checkDefaultByName2:
s2ms:
2 changes: 2 additions & 0 deletions subprojects/robotpy-wpimath/wpimath/controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
ControlAffinePlantInversionFeedforward_2_1,
ControlAffinePlantInversionFeedforward_2_2,
DifferentialDriveAccelerationLimiter,
DifferentialDriveFeedforward,
DifferentialDriveWheelVoltages,
ElevatorFeedforward,
HolonomicDriveController,
Expand Down Expand Up @@ -37,6 +38,7 @@
"ControlAffinePlantInversionFeedforward_2_1",
"ControlAffinePlantInversionFeedforward_2_2",
"DifferentialDriveAccelerationLimiter",
"DifferentialDriveFeedforward",
"DifferentialDriveWheelVoltages",
"ElevatorFeedforward",
"HolonomicDriveController",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import _init__interpolation # noqa: F401

# autogenerated by 'robotpy-build create-imports wpimath.interpolation wpimath.interpolation._interpolation'
# autogenerated by 'semiwrap create-imports wpimath.interpolation wpimath.interpolation._interpolation'
from ._interpolation import (
TimeInterpolatableFloatBuffer,
TimeInterpolatablePose2dBuffer,
Expand Down
26 changes: 25 additions & 1 deletion subprojects/robotpy-wpimath/wpimath/kinematics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
from . import _init__kinematics

# autogenerated by 'robotpy-build create-imports wpimath.kinematics'
# autogenerated by 'semiwrap create-imports wpimath.kinematics wpimath.kinematics._kinematics'
from ._kinematics import (
ChassisSpeeds,
DifferentialDriveKinematics,
DifferentialDriveKinematicsBase,
DifferentialDriveOdometry,
DifferentialDriveOdometry3d,
DifferentialDriveOdometry3dBase,
DifferentialDriveOdometryBase,
DifferentialDriveWheelPositions,
DifferentialDriveWheelSpeeds,
MecanumDriveKinematics,
MecanumDriveKinematicsBase,
MecanumDriveOdometry,
MecanumDriveOdometry3d,
MecanumDriveOdometry3dBase,
MecanumDriveOdometryBase,
MecanumDriveWheelPositions,
MecanumDriveWheelSpeeds,
SwerveDrive2Kinematics,
SwerveDrive2KinematicsBase,
SwerveDrive2Odometry,
SwerveDrive2Odometry3d,
SwerveDrive2Odometry3dBase,
SwerveDrive2OdometryBase,
SwerveDrive3Kinematics,
SwerveDrive3KinematicsBase,
SwerveDrive3Odometry,
SwerveDrive3Odometry3d,
SwerveDrive3Odometry3dBase,
SwerveDrive3OdometryBase,
SwerveDrive4Kinematics,
SwerveDrive4KinematicsBase,
SwerveDrive4Odometry,
SwerveDrive4Odometry3d,
SwerveDrive4Odometry3dBase,
SwerveDrive4OdometryBase,
SwerveDrive6Kinematics,
SwerveDrive6KinematicsBase,
SwerveDrive6Odometry,
SwerveDrive6Odometry3d,
SwerveDrive6Odometry3dBase,
SwerveDrive6OdometryBase,
SwerveModulePosition,
SwerveModuleState,
Expand All @@ -40,30 +52,42 @@
"DifferentialDriveKinematics",
"DifferentialDriveKinematicsBase",
"DifferentialDriveOdometry",
"DifferentialDriveOdometry3d",
"DifferentialDriveOdometry3dBase",
"DifferentialDriveOdometryBase",
"DifferentialDriveWheelPositions",
"DifferentialDriveWheelSpeeds",
"MecanumDriveKinematics",
"MecanumDriveKinematicsBase",
"MecanumDriveOdometry",
"MecanumDriveOdometry3d",
"MecanumDriveOdometry3dBase",
"MecanumDriveOdometryBase",
"MecanumDriveWheelPositions",
"MecanumDriveWheelSpeeds",
"SwerveDrive2Kinematics",
"SwerveDrive2KinematicsBase",
"SwerveDrive2Odometry",
"SwerveDrive2Odometry3d",
"SwerveDrive2Odometry3dBase",
"SwerveDrive2OdometryBase",
"SwerveDrive3Kinematics",
"SwerveDrive3KinematicsBase",
"SwerveDrive3Odometry",
"SwerveDrive3Odometry3d",
"SwerveDrive3Odometry3dBase",
"SwerveDrive3OdometryBase",
"SwerveDrive4Kinematics",
"SwerveDrive4KinematicsBase",
"SwerveDrive4Odometry",
"SwerveDrive4Odometry3d",
"SwerveDrive4Odometry3dBase",
"SwerveDrive4OdometryBase",
"SwerveDrive6Kinematics",
"SwerveDrive6KinematicsBase",
"SwerveDrive6Odometry",
"SwerveDrive6Odometry3d",
"SwerveDrive6Odometry3dBase",
"SwerveDrive6OdometryBase",
"SwerveModulePosition",
"SwerveModuleState",
Expand Down
Loading