Add mjs_findKeyframe.
PiperOrigin-RevId: 649036650 Change-Id: If514d5c333dd6084af9509324fd658c72576d7b5
This commit is contained in:
committed by
Copybara-Service
parent
8f16b72f44
commit
9107d3b507
@@ -144,6 +144,12 @@ PYBIND11_MODULE(_specs, m) {
|
||||
return mjs_findFrame(self.ptr, name.c_str());
|
||||
},
|
||||
py::return_value_policy::reference_internal);
|
||||
mjSpec.def(
|
||||
"find_keyframe",
|
||||
[](MjSpec& self, std::string& name) -> raw::MjsKey* {
|
||||
return mjs_findKeyframe(self.ptr, name.c_str());
|
||||
},
|
||||
py::return_value_policy::reference_internal);
|
||||
mjSpec.def(
|
||||
"find_default",
|
||||
[](MjSpec& self, std::string& classname) -> raw::MjsDefault* {
|
||||
|
||||
Reference in New Issue
Block a user