class_docstr: Superclass for all MuJoCo environments.
class_docstr_tok: ["Superclass","for","all","MuJoCo","environments","."]
docstr: Step the simulation n number of frames and applying a control action.
code: def do_simulation(self, ctrl, n_frames):
      """
      Step the simulation n number of frames and applying a control action.
      """
      # Check control input is contained in the action space
      if np.array(ctrl).shape != self.action_space.shape:
          raise ValueError("Action dimension mismatch")
      self._step_mujoco_simulation(ctrl, n_frames)
  
imports: from os import path
  from typing import Optional, Union
  import numpy
  import gym
  from gym import error, logger, spaces
  from gym.spaces import Space
label_desc: Use image node_id 12 for calling the BaseMujocoEnv obj's underlying member method code with example usage: obj.do_simulation(ctrl, n_frames) without return types