parameters: (self, simple_indices)
docstring: Take an action using a simple interface: 0-forward, 1-turn left, 2-turn right, 3-look up, 4-look down.
              All viewpoint changes are 30 degrees. Forward, look up and look down may not succeed - check state.
              WARNING - Very likely this simple interface restricts some edges in the graph. Parts of the
              environment may not longer be navigable.
docstring_summary: Take an action using a simple interface: 0-forward, 1-turn left, 2-turn right, 3-look up, 4-look down.
              All viewpoint changes are 30 degrees. Forward, look up and look down may not succeed - check state.
              WARNING - Very likely this simple interface restricts some edges in the graph. Parts of the
              environment may not longer be navigable.
docstring_tokens: Take an action using a simple interface : 0 - forward 1 - turn left 2 - turn right 3 - look up 4 - look down . All viewpoint changes are 30 degrees . Forward look up and look down may not succeed - check state . WARNING - Very likely this simple interface restricts some edges in the graph . Parts of the environment may not longer be navigable .
function: def makeSimpleActions(self, simple_indices):
          ''' Take an action using a simple interface: 0-forward, 1-turn left, 2-turn right, 3-look up, 4-look down.
              All viewpoint changes are 30 degrees. Forward, look up and look down may not succeed - check state.
              WARNING - Very likely this simple interface restricts some edges in the graph. Parts of the
              environment may not longer be navigable. '''
          actions = []
          for i, index in enumerate(simple_indices):
              if index == 0:
                  actions.append((1, 0, 0))
              elif index == 1:
                  actions.append((0,-1, 0))
              elif index == 2:
                  actions.append((0, 1, 0))
              elif index == 3:
                  actions.append((0, 0, 1))
              elif index == 4:
                  actions.append((0, 0,-1))
              else:
                  sys.exit("Invalid simple action");
          self.makeActions(actions)
function_tokens: def makeSimpleActions ( self , simple_indices ) : actions = [ ] for i , index in enumerate ( simple_indices ) : if index == 0 : actions . append ( ( 1 , 0 , 0 ) ) elif index == 1 : actions . append ( ( 0 , - 1 , 0 ) ) elif index == 2 : actions . append ( ( 0 , 1 , 0 ) ) elif index == 3 : actions . append ( ( 0 , 0 , 1 ) ) elif index == 4 : actions . append ( ( 0 , 0 , - 1 ) ) else : sys . exit ( "Invalid simple action" ) self . makeActions ( actions )