<reponame>masterrom/CRLMachineLearningProject<filename>environmentTest.py
from environment.environment import section, Environment, Observation, Robot

if __name__ == '__main__':

    robot = Robot()
    robot.newSection()
    robot.newSection()

    env = Environment(robot)
    # env.staticPoint([-9.966711079379195, 99.3346653975306])

    env.render()


    while True:
        secNum = int(input("Enter SecNum: "))
        direction = str(input("Enter direction: "))
        steps = int(input("Enter number of steps: "))

        for i in range(steps):
            obs = env.robotStep(secNum, direction)
            print(env.robot.endEffectorPos())
            print(obs)
            env.render()

from environment.environment import section, Environment, Observation, Robot

if __name__ == '__main__':

    robot = Robot()
    robot.newSection()
    robot.newSection()

    env = Environment(robot)
    # env.staticPoint([-9.966711079379195, 99.3346653975306])

    env.render()


    while True:
        secNum = int(input("Enter SecNum: "))
        direction = str(input("Enter direction: "))
        steps = int(input("Enter number of steps: "))

        for i in range(steps):
            obs = env.robotStep(secNum, direction)
            print(env.robot.endEffectorPos())
            print(obs)
            env.render()
# env.staticPoint([-9.966711079379195, 99.3346653975306])