Replace glfw.get_time with time.time in the Python viewer timing logic.

PiperOrigin-RevId: 563134207
Change-Id: Ic548701fc78336d8d87e94ea48833f94ee6395b8
This commit is contained in:
Saran Tunyasuvunakool
2023-09-06 09:51:32 -07:00
committed by Copybara-Service
parent ba66bd4f8b
commit 48d0bfde44
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -31,6 +31,7 @@
namespace mujoco::python {
namespace {
using UIAdapter = mujoco::GlfwAdapter;
namespace py = ::pybind11;
template <typename T, int N>
@@ -196,7 +197,7 @@ PYBIND11_MODULE(_simulate, pymodule) {
py::object pert, bool fully_managed,
py::object key_callback) {
return std::make_unique<SimulateWrapper>(
std::make_unique<UIAdapterWithPyCallback<mujoco::GlfwAdapter>>(
std::make_unique<UIAdapterWithPyCallback<UIAdapter>>(
key_callback),
scn, cam, opt, pert, fully_managed);
}))