In [4]:
%pylab inline


Populating the interactive namespace from numpy and matplotlib

In [1]:
from jumpjr.env import Env

env = Env()

In [2]:
env.setup()

In [3]:
import time

for _ in range(2):
    env.recorder.start()
    env.dmp_player.play(env.base_dmp, 
                        duration=.6, repeat=10, 
                        wait=True)
    env.recorder.stop()
    time.sleep(1)
    env.drive_back()

In [6]:
plot(env.recorder.trajectory)


Out[6]:
[<matplotlib.lines.Line2D at 0x7fa6001d6590>,
 <matplotlib.lines.Line2D at 0x7fa6001d6710>,
 <matplotlib.lines.Line2D at 0x7fa6001d6890>,
 <matplotlib.lines.Line2D at 0x7fa6001d6a10>]

In [7]:
env.teardown()

In [ ]: