From 59cf77998f875e8c34f336ec491f5049212744a2 Mon Sep 17 00:00:00 2001 From: rodrigodelazcano Date: Wed, 18 Oct 2023 23:36:10 -0400 Subject: [PATCH] fix --- gymnasium/envs/mujoco/mujoco_rendering.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gymnasium/envs/mujoco/mujoco_rendering.py b/gymnasium/envs/mujoco/mujoco_rendering.py index a5681a68d..a12abe20a 100644 --- a/gymnasium/envs/mujoco/mujoco_rendering.py +++ b/gymnasium/envs/mujoco/mujoco_rendering.py @@ -611,7 +611,10 @@ def _create_overlay(self): self.add_overlay(bottomleft, "FPS", "%d%s" % (1 / self._time_per_render, "")) self.add_overlay( - bottomleft, "Solver iterations", str(self.data.solver_iter + 1) + bottomleft, "Solver iterations", str(self.data.solver_niter[0] + 1) + ) + self.add_overlay( + bottomleft, "Number of Islands", str(self.data.solver_nisland) ) self.add_overlay( bottomleft, "Step", str(round(self.data.time / self.model.opt.timestep))