Yield ownership of vector<double>, vector<float>, and vector<int> to mjSpec in Python bindings.
Fixes #2756 PiperOrigin-RevId: 785417251 Change-Id: Ib399c46ee59585258ace7d9583c68b7d06d0a9e4
This commit is contained in:
committed by
Copybara-Service
parent
60f9b34a77
commit
fc13995dd4
@@ -221,6 +221,9 @@ PYBIND11_MODULE(_specs, m) {
|
||||
DefineArray<char>(m, "MjCharVec");
|
||||
DefineArray<std::string>(m, "MjStringVec");
|
||||
DefineArray<std::byte>(m, "MjByteVec");
|
||||
DefineArray<double>(m, "MjDoubleVec");
|
||||
DefineArray<float>(m, "MjFloatVec");
|
||||
DefineArray<int>(m, "MjIntVec");
|
||||
|
||||
// ============================= MJSPEC =====================================
|
||||
mjSpec.def(py::init<>());
|
||||
|
||||
Reference in New Issue
Block a user