Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/r/l/rlpy-HEAD/rlpy/Domains/FiniteTrackCartPole.py   rlpy(Download)
            StateIndex.THETA,
            StateIndex.THETA_DOT,
            StateIndex.X,
            StateIndex.X_DOT]
        self.DimNames = ['Theta', 'Thetadot', 'X', 'Xdot']
    def isTerminal(self):
        s = self.state
        return (not (-pi / 15 < s[StateIndex.THETA] < pi / 15) or
                not (-2.4 < s[StateIndex.X] < 2.4))
 
    def isTerminal(self, s=None):
        if s is None:
            s = self.state
        return (not (-np.pi / 15 < s[StateIndex.THETA] < np.pi / 15) or
                not (-2.4 < s[StateIndex.X] < 2.4))
    def isTerminal(self, s=None):
        if s is None:
            s = self.state
        return (not (-np.pi / 15 < s[StateIndex.THETA] < np.pi / 15) or
                not (-2.4 < s[StateIndex.X] < 2.4))
    def isTerminal(self, s=None):
        if s is None:
            s = self.state
        return not (-2.4 < s[StateIndex.X] < 2.4)