Exemplo n.º 1
0
 def getState(self):
     """ returns the state one step (dt) ahead in the future. stores the state in
         self.sensors because it is needed for the next calculation. The sensor return 
         vector has 4 elements: theta, theta', s, s' (s being the distance from the
         origin).
     """
     Environment.getState(self)
     return asarray(self.sensors).flatten()