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

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

src/r/l/rlpy-HEAD/rlpy/Domains/InfiniteTrackCartPole.py   rlpy(Download)
        s = np.append(self.state, np.array(
            [0, 0]))  # 0 cart position and velocity
        ns = self._stepFourState(s, a)
        ns = ns[
            0:2]  # [theta,thetadot], ie, omitting position/velocity of cart

src/r/l/rlpy-HEAD/rlpy/Domains/FiniteTrackCartPole.py   rlpy(Download)
    def step(self, a):
        s = self.state
        ns = self._stepFourState(s, a)
        self.state = ns.copy()
        terminal = self.isTerminal()  # automatically uses self.state