Files
allwpilib/wpilibc/src/main/python/semiwrap/MechanismRoot2d.yml

31 lines
988 B
YAML
Raw Normal View History

extra_includes:
2025-11-07 19:56:21 -05:00
- wpi/smartdashboard/MechanismLigament2d.hpp
classes:
2025-11-07 20:00:05 -05:00
wpi::MechanismRoot2d:
force_type_casters:
2025-11-07 20:00:05 -05:00
- 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,
2025-11-07 20:00:05 -05:00
std::string_view name, double length, wpi::units::degree_t angle,
double lineWidth, const wpi::Color8Bit& color) {
return self->Append<MechanismLigament2d>(name, length, angle, lineWidth, color);
},
py::arg("name"), py::arg("length"), py::arg("angle"),
2025-11-07 20:00:05 -05:00
py::arg("lineWidth") = 6, py::arg("color") = wpi::Color8Bit{235, 137, 52},
release_gil(), "Append a ligament node",
py::return_value_policy::reference_internal)
;