Enable procedural plugin activation in Python bindings.
PiperOrigin-RevId: 746055614 Change-Id: Idcc2f62fdfeccdca356e3d1acadf168b46a98881
This commit is contained in:
committed by
Copybara-Service
parent
b1f8d444f2
commit
a209134315
@@ -483,6 +483,13 @@ PYBIND11_MODULE(_specs, m) {
|
||||
py::arg("suffix") = py::none(), py::arg("site") = py::none(),
|
||||
py::arg("frame") = py::none(),
|
||||
py::return_value_policy::reference_internal);
|
||||
mjSpec.def(
|
||||
"activate_plugin",
|
||||
[](MjSpec& self, std::string& name) {
|
||||
mjs_activatePlugin(self.ptr, name.c_str());
|
||||
},
|
||||
py::arg("name"),
|
||||
py::return_value_policy::reference_internal);
|
||||
|
||||
// ============================= MJSBODY =====================================
|
||||
mjsBody.def(
|
||||
|
||||
Reference in New Issue
Block a user