class_docstr: Binding for py_bullet environments.
docstr: Returns a wrapper class for bullet-based gym.Env.
  
  Args:
      env (gym.wrappers.time_limit or str): A gym.TimeLimit
          object wrapping a gym.Env created via gym.make(). Or a name
          of the gym environment to be created.
      is_image (bool): True if observations contain pixel values,
          false otherwise. Setting this to true converts a gym.Spaces.Box
          obs space to an akro.Image and normalizes pixel values.
      max_episode_length (int): The maximum steps allowed for an episode.
docstr_tok: ["Returns","a","wrapper","class","for","bullet-based","gym.Env",".","Args",":","env","(","gym.wrappers.time_limit","or","str",")",":","A","gym.TimeLimit","object","wrapping","a","gym.Env","created","via","gym.make","(",")",".","Or","a","name","of","the","gym","environment","to","be","created",".","is_image","(","bool",")",":","True","if","observations","contain","pixel","values",",","false","otherwise",".","Setting","this","to","true","converts","a","gym.Spaces.Box","obs","space","to","an","akro.Image","and","normalizes","pixel","values",".","max_episode_length","(","int",")",":","The","maximum","steps","allowed","for","an","episode","."]
code: def __init__(self, env, is_image=False, max_episode_length=None):
      """Returns a wrapper class for bullet-based gym.Env.
  
      Args:
          env (gym.wrappers.time_limit or str): A gym.TimeLimit
              object wrapping a gym.Env created via gym.make(). Or a name
              of the gym environment to be created.
          is_image (bool): True if observations contain pixel values,
              false otherwise. Setting this to true converts a gym.Spaces.Box
              obs space to an akro.Image and normalizes pixel values.
          max_episode_length (int): The maximum steps allowed for an episode.
  
      """
      env_name = None
      if isinstance(env, str):
          env_name = env
      elif isinstance(env, gym.Env):
          env_name = env.spec.id
  
      # 'RacecarZedBulletEnv-v0' environment enables rendering by
      # default, while pybullet allows only one GUI connection at a time.
      # Setting renders to False avoids potential error when multiple
      # of these envs are tested at the same time.
      if "RacecarZedBulletEnv" in env_name:
          env = gym.make(env_name, renders=False)
  
      super().__init__(
          env, is_image=is_image, max_episode_length=max_episode_length
      )
  
file_path: garage/src/garage/envs/bullet/bullet_env.py
imports: import inspect
  import gym
  from garage.envs import GymEnv
label_desc: Use image node_id 2 to create a new BulletEnv object from inherited base classes: GymEnv with example: obj = BulletEnv(env, is_image, max_episode_length)