class_docstr: A high level game controller class.
  
  The class allows interacting with DMLab environment using high level actions,
  such as look at specific direction, move to specific coordinates etc.
class_docstr_tok: ["A","high","level","game","controller","class",".","The","class","allows","interacting","with","DMLab","environment","using","high","level","actions",",","such","as","look","at","specific","direction",",","move","to","specific","coordinates","etc","."]
docstr: Initialize the controller.
docstr_tok: ["Initialize","the","controller","."]
code: def __init__(self, env):
      """Initialize the controller."""
      self._env = env
  
      action_spec = env.action_spec()
      self._action_index = {
          action["name"]: i for i, action in enumerate(action_spec)
      }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import six
  from python.tests.utils import math_utils
label_desc: Use image node_id 1 to create a new GameController object from inherited base classes: object with example: obj = GameController(env)