Remove copy_back from Python bindings and mj_copyBack from the C API.

PiperOrigin-RevId: 687377331
Change-Id: I355493d92857418b08b5aa90ea38cebe5c475314
This commit is contained in:
Alessio Quaglino
2024-10-18 11:54:00 -07:00
committed by Copybara-Service
parent 62c0ef4262
commit dcf2816543
14 changed files with 17 additions and 63 deletions
-6
View File
@@ -335,12 +335,6 @@ PYBIND11_MODULE(_specs, m) {
A dictionary of assets to be used by the spec. The keys are asset names
and the values are asset contents.
)mydelimiter");
mjSpec.def(
"copy_back",
[](MjSpec& self, raw::MjModel& model) {
return mj_copyBack(self.ptr, &model);
},
py::return_value_policy::reference_internal);
mjSpec.def("to_xml", [](MjSpec& self) -> std::string {
int size = mj_saveXMLString(self.ptr, nullptr, 0, nullptr, 0);
std::unique_ptr<char[]> buf(new char[size + 1]);