mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11: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:
31
wpilibc/src/main/python/semiwrap/MechanismObject2d.yml
Normal file
31
wpilibc/src/main/python/semiwrap/MechanismObject2d.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
extra_includes:
|
||||
- frc/smartdashboard/MechanismLigament2d.h
|
||||
|
||||
classes:
|
||||
frc::MechanismObject2d:
|
||||
force_type_casters:
|
||||
- units::degree_t
|
||||
attributes:
|
||||
m_mutex:
|
||||
ignore: true
|
||||
methods:
|
||||
GetName:
|
||||
Append:
|
||||
ignore: true
|
||||
MechanismObject2d:
|
||||
ignore: true
|
||||
UpdateEntries:
|
||||
|
||||
# keep this in sync with MechanismRoot2d.yml
|
||||
inline_code: |-
|
||||
cls_MechanismObject2d
|
||||
.def("appendLigament", [](MechanismObject2d *self,
|
||||
std::string_view name, double length, units::degree_t angle,
|
||||
double lineWidth, const frc::Color8Bit& color) {
|
||||
return self->Append<MechanismLigament2d>(name, length, angle, lineWidth, color);
|
||||
},
|
||||
py::arg("name"), py::arg("length"), py::arg("angle"),
|
||||
py::arg("lineWidth") = 6, py::arg("color") = frc::Color8Bit{235, 137, 52},
|
||||
"Append a ligament node",
|
||||
py::return_value_policy::reference_internal)
|
||||
;
|
||||
Reference in New Issue
Block a user