mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Removes one of the org.wpilib.util package conflicts for modularization. Only a few minor tweaks were required to remove the wpimath dependency.
31 lines
1000 B
YAML
31 lines
1000 B
YAML
extra_includes:
|
|
- wpi/smartdashboard/MechanismLigament2d.hpp
|
|
|
|
classes:
|
|
wpi::MechanismRoot2d:
|
|
force_type_casters:
|
|
- wpi::units::degree_t
|
|
methods:
|
|
MechanismRoot2d:
|
|
ignore: true
|
|
SetPosition:
|
|
GetName:
|
|
ignore: true
|
|
Append:
|
|
ignore: true
|
|
|
|
# keep this in sync with MechanismRoot2d.h
|
|
inline_code: |-
|
|
cls_MechanismRoot2d
|
|
.def("getName", [](MechanismRoot2d *self) { return self->GetName(); }, release_gil())
|
|
.def("appendLigament", [](MechanismRoot2d *self,
|
|
std::string_view name, double length, wpi::units::degree_t angle,
|
|
double lineWidth, const wpi::util::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") = wpi::util::Color8Bit{235, 137, 52},
|
|
release_gil(), "Append a ligament node",
|
|
py::return_value_policy::reference_internal)
|
|
;
|