Пример #1
0
    def performAction(self, action):
        """ stores the desired action for the next runge-kutta step. 
            'actionNum' discrete actions are available, which are mapped 
            to the discrete even-spaced interval of [-50, 50] Newton.
        """
        action = array([((2.0*action[0] / (float(self.conditions['actionNum'])-1.)) - 1.) * 50.])

        Environment.performAction(self, action)
Пример #2
0
 def performAction(self, action):
     """ stores the desired action for the next runge-kutta step. Actions are expected
         to be between -50 and 50.
     """
     action = clip(asarray(action), -50., 50.)
     Environment.performAction(self, action)