Remove body.spec() function from the Python API

We can only use the MjSpec wrapper, not the raw::MjSpec struct in the API.

PiperOrigin-RevId: 722589064
Change-Id: I007150f92738487f27211d7435e328cab86214f7
This commit is contained in:
Alessio Quaglino
2025-02-03 03:29:39 -08:00
committed by Copybara-Service
parent 709b8d6b83
commit 86ace5e562
-6
View File
@@ -810,12 +810,6 @@ PYBIND11_MODULE(_specs, m) {
return FindAllImpl(self, mjOBJ_FRAME, false);
},
py::return_value_policy::reference_internal);
mjsBody.def(
"spec",
[](raw::MjsBody& self) -> raw::MjSpec* {
return mjs_getSpec(self.element);
},
py::return_value_policy::reference_internal);
mjsBody.def_property_readonly(
"parent",
[](raw::MjsBody& self) -> raw::MjsBody* {