Internal change

PiperOrigin-RevId: 928689775
Change-Id: Idfbbafe44b74acf36ff82a72eabf026d4226d47c
This commit is contained in:
Matija Kecman
2026-06-08 11:50:12 -07:00
committed by Copybara-Service
parent 2fcd135179
commit 66c0131840
5 changed files with 5 additions and 0 deletions
@@ -176,6 +176,7 @@ class Viewer {
};
PYBIND11_MODULE(native_viewer_cc, m) {
pybind11::module_::import("mujoco._structs");
pybind11::class_<Viewer>(m, "Viewer")
.def(pybind11::init<const std::string&, int, int, const std::string&>())
.def("InitRenderer", &Viewer::InitRenderer)
@@ -41,6 +41,7 @@ py::object Parse(std::string_view filepath) {
} // namespace mujoco::python
PYBIND11_MODULE(parser, m) {
pybind11::module_::import("mujoco._structs");
m.def("parse", &mujoco::python::Parse,
pybind11::return_value_policy::take_ownership);
}
@@ -69,6 +69,7 @@ class Renderer {
} // namespace mujoco::python
PYBIND11_MODULE(renderer, m) {
pybind11::module_::import("mujoco._structs");
pybind11::class_<mujoco::python::Renderer>(m, "Renderer")
.def(pybind11::init<const std::string&>())
.def("Init", &mujoco::python::Renderer::Init)
+1
View File
@@ -24,6 +24,7 @@ namespace py = pybind11;
using StepControl = mujoco::platform::StepControl;
PYBIND11_MODULE(sim, m) {
py::module_::import("mujoco._structs");
m.doc() = "MuJoCo platform simulation bindings for Link.";
py::enum_<StepControl::Status>(m, "StepStatus")
+1
View File
@@ -57,6 +57,7 @@ struct RenderFlags {
};
PYBIND11_MODULE(ux, m) {
py::module_::import("mujoco._structs");
py::class_<RenderFlags>(m, "RenderFlags")
.def(py::init<>())
.def_readwrite("flags", &RenderFlags::flags);