示例#1
0
import numpy as np
from lib.world import World
world = World()
print(world.getObservation())
示例#2
0
import time
import datetime
from lib.world import World

world = World()

while True:
    observation = world.getObservation()
    print('.')
    if (world.isDone()):
        print("\nDone!\n")
        world.episodeStartTime = datetime.datetime.now()
        world.arduino.resetRobot()
    time.sleep(0.25)