Skip to content

Commit 35e353d

Browse files
committed
Small fixups
1 parent e6cf907 commit 35e353d

File tree

8 files changed

+44
-6
lines changed

8 files changed

+44
-6
lines changed

subprojects/robotpy-wpilib/semiwrap/Color.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ inline_code: |
181181
^ (std::hash<double>{}(self->green) << 1)
182182
^ (std::hash<double>{}(self->blue) << 2)
183183
);
184-
return h != -1 ? h : -2;
184+
return h != static_cast<size_t>(-1) ? h : -2;
185185
})
186186
.def("__repr__", [](Color *self) {
187187
return "Color("

subprojects/robotpy-wpimath/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ update_init = [
4545
"wpimath.estimator wpimath._controls._controls.estimator",
4646
"wpimath.filter",
4747
"wpimath.geometry",
48+
"wpimath.kinematics",
49+
"wpimath.interpolation",
4850
"wpimath.optimization wpimath._controls._controls.optimization",
4951
"wpimath.path wpimath._controls._controls.path",
5052
"wpimath.spline",

subprojects/robotpy-wpimath/semiwrap/controls/DifferentialDriveFeedforward.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
defaults:
2+
subpackage: controller
3+
14
classes:
25
frc::DifferentialDriveFeedforward:
36
force_type_casters:

subprojects/robotpy-wpimath/tests/cpp/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ license = "BSD-3-Clause"
1717
[tool.hatch.build.hooks.meson]
1818

1919
[tool.semiwrap]
20+
update_init = [
21+
"wpimath_test wpimath_test._wpimath_test",
22+
]
2023

2124
[tool.semiwrap.extension_modules."wpimath_test._wpimath_test"]
2225
name = "wpimath_test"
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
---
21

32
classes:
43
SomeClass:
54
attributes:
6-
kDefaultPeriod:
75
five_ft:
6+
s_constant:
7+
ms_constant1:
8+
ms_constant2:
9+
ms_constant3:
810
methods:
9-
checkDefaultByName:
1011
checkDefaultByNum1:
1112
param_override:
1213
period:
@@ -17,3 +18,6 @@ classes:
1718
default: 0.050_s
1819
ms2s:
1920
ft2m:
21+
checkDefaultByName1:
22+
checkDefaultByName2:
23+
s2ms:

subprojects/robotpy-wpimath/wpimath/controller/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
ControlAffinePlantInversionFeedforward_2_1,
77
ControlAffinePlantInversionFeedforward_2_2,
88
DifferentialDriveAccelerationLimiter,
9+
DifferentialDriveFeedforward,
910
DifferentialDriveWheelVoltages,
1011
ElevatorFeedforward,
1112
HolonomicDriveController,
@@ -37,6 +38,7 @@
3738
"ControlAffinePlantInversionFeedforward_2_1",
3839
"ControlAffinePlantInversionFeedforward_2_2",
3940
"DifferentialDriveAccelerationLimiter",
41+
"DifferentialDriveFeedforward",
4042
"DifferentialDriveWheelVoltages",
4143
"ElevatorFeedforward",
4244
"HolonomicDriveController",

subprojects/robotpy-wpimath/wpimath/interpolation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from . import _init__interpolation # noqa: F401
22

3-
# autogenerated by 'robotpy-build create-imports wpimath.interpolation wpimath.interpolation._interpolation'
3+
# autogenerated by 'semiwrap create-imports wpimath.interpolation wpimath.interpolation._interpolation'
44
from ._interpolation import (
55
TimeInterpolatableFloatBuffer,
66
TimeInterpolatablePose2dBuffer,

subprojects/robotpy-wpimath/wpimath/kinematics/__init__.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
11
from . import _init__kinematics
22

3-
# autogenerated by 'robotpy-build create-imports wpimath.kinematics'
3+
# autogenerated by 'semiwrap create-imports wpimath.kinematics wpimath.kinematics._kinematics'
44
from ._kinematics import (
55
ChassisSpeeds,
66
DifferentialDriveKinematics,
77
DifferentialDriveKinematicsBase,
88
DifferentialDriveOdometry,
9+
DifferentialDriveOdometry3d,
10+
DifferentialDriveOdometry3dBase,
911
DifferentialDriveOdometryBase,
1012
DifferentialDriveWheelPositions,
1113
DifferentialDriveWheelSpeeds,
1214
MecanumDriveKinematics,
1315
MecanumDriveKinematicsBase,
1416
MecanumDriveOdometry,
17+
MecanumDriveOdometry3d,
18+
MecanumDriveOdometry3dBase,
1519
MecanumDriveOdometryBase,
1620
MecanumDriveWheelPositions,
1721
MecanumDriveWheelSpeeds,
1822
SwerveDrive2Kinematics,
1923
SwerveDrive2KinematicsBase,
2024
SwerveDrive2Odometry,
25+
SwerveDrive2Odometry3d,
26+
SwerveDrive2Odometry3dBase,
2127
SwerveDrive2OdometryBase,
2228
SwerveDrive3Kinematics,
2329
SwerveDrive3KinematicsBase,
2430
SwerveDrive3Odometry,
31+
SwerveDrive3Odometry3d,
32+
SwerveDrive3Odometry3dBase,
2533
SwerveDrive3OdometryBase,
2634
SwerveDrive4Kinematics,
2735
SwerveDrive4KinematicsBase,
2836
SwerveDrive4Odometry,
37+
SwerveDrive4Odometry3d,
38+
SwerveDrive4Odometry3dBase,
2939
SwerveDrive4OdometryBase,
3040
SwerveDrive6Kinematics,
3141
SwerveDrive6KinematicsBase,
3242
SwerveDrive6Odometry,
43+
SwerveDrive6Odometry3d,
44+
SwerveDrive6Odometry3dBase,
3345
SwerveDrive6OdometryBase,
3446
SwerveModulePosition,
3547
SwerveModuleState,
@@ -40,30 +52,42 @@
4052
"DifferentialDriveKinematics",
4153
"DifferentialDriveKinematicsBase",
4254
"DifferentialDriveOdometry",
55+
"DifferentialDriveOdometry3d",
56+
"DifferentialDriveOdometry3dBase",
4357
"DifferentialDriveOdometryBase",
4458
"DifferentialDriveWheelPositions",
4559
"DifferentialDriveWheelSpeeds",
4660
"MecanumDriveKinematics",
4761
"MecanumDriveKinematicsBase",
4862
"MecanumDriveOdometry",
63+
"MecanumDriveOdometry3d",
64+
"MecanumDriveOdometry3dBase",
4965
"MecanumDriveOdometryBase",
5066
"MecanumDriveWheelPositions",
5167
"MecanumDriveWheelSpeeds",
5268
"SwerveDrive2Kinematics",
5369
"SwerveDrive2KinematicsBase",
5470
"SwerveDrive2Odometry",
71+
"SwerveDrive2Odometry3d",
72+
"SwerveDrive2Odometry3dBase",
5573
"SwerveDrive2OdometryBase",
5674
"SwerveDrive3Kinematics",
5775
"SwerveDrive3KinematicsBase",
5876
"SwerveDrive3Odometry",
77+
"SwerveDrive3Odometry3d",
78+
"SwerveDrive3Odometry3dBase",
5979
"SwerveDrive3OdometryBase",
6080
"SwerveDrive4Kinematics",
6181
"SwerveDrive4KinematicsBase",
6282
"SwerveDrive4Odometry",
83+
"SwerveDrive4Odometry3d",
84+
"SwerveDrive4Odometry3dBase",
6385
"SwerveDrive4OdometryBase",
6486
"SwerveDrive6Kinematics",
6587
"SwerveDrive6KinematicsBase",
6688
"SwerveDrive6Odometry",
89+
"SwerveDrive6Odometry3d",
90+
"SwerveDrive6Odometry3dBase",
6791
"SwerveDrive6OdometryBase",
6892
"SwerveModulePosition",
6993
"SwerveModuleState",

0 commit comments

Comments
 (0)