Add show_{left,right}_ui kwarg to viewer.launch(_passive).
Fixes #857 PiperOrigin-RevId: 572333909 Change-Id: I12247fe856afddf808eb8f386a594acac47c34b5
This commit is contained in:
committed by
Copybara-Service
parent
2e15574b58
commit
a1d0cbd654
@@ -314,7 +314,17 @@ PYBIND11_MODULE(_simulate, pymodule) {
|
||||
const auto max_length = sizeof_arr(sim.load_error);
|
||||
std::strncpy(sim.load_error, error.c_str(), max_length - 1);
|
||||
sim.load_error[max_length - 1] = '\0';
|
||||
}));
|
||||
}))
|
||||
.def_property("ui0_enable", GetIfNotNull(&mujoco::Simulate::ui0_enable),
|
||||
CallIfNotNull(+[](mujoco::Simulate& sim, int enabled) {
|
||||
sim.ui0_enable = enabled;
|
||||
}),
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
.def_property("ui1_enable", GetIfNotNull(&mujoco::Simulate::ui1_enable),
|
||||
CallIfNotNull(+[](mujoco::Simulate& sim, int enabled) {
|
||||
sim.ui1_enable = enabled;
|
||||
}),
|
||||
py::call_guard<py::gil_scoped_release>());
|
||||
|
||||
pymodule.def("set_glfw_dlhandle", [](std::uintptr_t dlhandle) {
|
||||
mujoco::Glfw(reinterpret_cast<void*>(dlhandle));
|
||||
|
||||
Reference in New Issue
Block a user