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

32 lines
926 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::MechanismObject2d:
force_type_casters:
2025-11-07 20:00:05 -05:00
- wpi::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,
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},
"Append a ligament node",
py::return_value_policy::reference_internal)
;