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:
committed by
Copybara-Service
parent
709b8d6b83
commit
86ace5e562
@@ -810,12 +810,6 @@ PYBIND11_MODULE(_specs, m) {
|
|||||||
return FindAllImpl(self, mjOBJ_FRAME, false);
|
return FindAllImpl(self, mjOBJ_FRAME, false);
|
||||||
},
|
},
|
||||||
py::return_value_policy::reference_internal);
|
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(
|
mjsBody.def_property_readonly(
|
||||||
"parent",
|
"parent",
|
||||||
[](raw::MjsBody& self) -> raw::MjsBody* {
|
[](raw::MjsBody& self) -> raw::MjsBody* {
|
||||||
|
|||||||
Reference in New Issue
Block a user