Reorder arguments of Simulate::Load in Python to match C++.

PiperOrigin-RevId: 523973129
Change-Id: I58760e3e392a208dd8257c340da146aa8f745fb7
This commit is contained in:
Saran Tunyasuvunakool
2023-04-13 05:21:26 -07:00
committed by Copybara-Service
parent 5646c905cd
commit cefc290eac
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -51,13 +51,13 @@ PYBIND11_MODULE(_simulate, pymodule) {
std::make_unique<mujoco::GlfwAdapter>());
}))
.def(
"renderloop",
"render_loop",
[](mujoco::Simulate& simulate) { simulate.RenderLoop(); },
py::call_guard<py::gil_scoped_release>())
.def(
"load",
[](mujoco::Simulate& simulate, const std::string& path,
MjModelWrapper& m, MjDataWrapper& d) {
[](mujoco::Simulate& simulate, MjModelWrapper& m, MjDataWrapper& d,
const std::string& path) {
simulate.Load(m.get(), d.get(), path.c_str());
},
py::call_guard<py::gil_scoped_release>())
+1 -1
View File
@@ -273,7 +273,7 @@ def _launch_internal(model: Optional[mujoco.MjModel] = None,
atexit.register(exit_requester)
side_thread.start()
simulate.renderloop()
simulate.render_loop()
atexit.unregister(exit_requester)
side_thread.join()