Script execution
This commit is contained in:
32
script/TestRobotCmds.py
Normal file
32
script/TestRobotCmds.py
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
import java.lang.System as System
|
||||
|
||||
index = 0
|
||||
max_time = 0
|
||||
while True:
|
||||
start = System.currentTimeMillis()
|
||||
robot.execute(1,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(2,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(1,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(2,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(1,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(2,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(1,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(2,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(1,1,1)
|
||||
time.sleep(0.01)
|
||||
robot.execute(2,1,1)
|
||||
time.sleep(0.01)
|
||||
cur_time = System.currentTimeMillis() - start
|
||||
max_time = max(cur_time, max_time)
|
||||
print index, cur_time, max_time
|
||||
index = index + 1
|
||||
|
||||
Reference in New Issue
Block a user