docstr: Map action space [-1, 1] of model output to new action space
  [low_bound, high_bound].
docstr_tok: ["Map","action","space","[","-1",",","1","]","of","model","output","to","new","action","space","[","low_bound",",","high_bound","]","."]
code: def __init__(self, env):
      """Map action space [-1, 1] of model output to new action space
      [low_bound, high_bound].
      """
      gym.Wrapper.__init__(self, env)
      assert hasattr(
          self.env.action_space, "low"
      ), "action space should be instance of gym.spaces.Box"
      assert hasattr(
          self.env.action_space, "high"
      ), "action space should be instance of gym.spaces.Box"
      self.low_bound = self.env.action_space.low[0]
      self.high_bound = self.env.action_space.high[0]
      assert self.high_bound > self.low_bound
      if hasattr(env, "_max_episode_steps"):
          self._max_episode_steps = int(self.env._max_episode_steps)
  
imports: import gym
  import numpy
label_desc: Use image node_id 1 to create a new ActionMappingWrapper object from inherited base classes: gym with example: obj = ActionMappingWrapper(env)