Ejemplo n.º 1
0
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from keras.models import Sequential, load_model
from keras.layers import Dense, Input
import tensorflow as tf
from tensorflow import keras

# astar = A_Star.AStar(500)
start = end = 0
path = 0

n = dirX = dirY = 0
grid = 500
trig = 0

ser = Arduino.Serial('raspi', 'usb')
serOdroid = Arduino.Serial('raspi', 'gpio')
queue = Queue()

a = c = 0
b = 10000
d = -10000
fcode = 0
data1 = data2 = data3 = data4 = 0
dataUsb1 = dataUsb2 = dataUsb3 = dataUsb4 = 0
x = 0
y = 0
w = 0
dribble = 0
kick = 0
encoX = encoY = angleZ = ball = 0
Ejemplo n.º 2
0
# from sklearn.preprocessing import LabelEncoder
# from keras.models import Sequential,load_model
# from keras.layers import Dense,Input
# import tensorflow as tf
# from tensorflow import keras
# import csv

astar = A_Star.AStar(500)
start = end = 0
path = 0

n = dirX = dirY = 0
grid = 500
trig = 0

ser = Arduino.Serial('raspi', 'usb')
Od = Arduino.Serial('raspi', 'gpio')
robot = move()
queue = Queue()

a = c = 0
b = 10000
d = -10000
fcode = 0
data1 = data2 = data3 = data4 = 0
dataUsb1 = dataUsb2 = dataUsb3 = dataUsb4 = 0
x = 0
y = 0
w = 0
dribble = 0
kick = 0
Ejemplo n.º 3
0
 def __init__(self):
     self.x = self.y = self.w = self.dribble = self.kick = 0
     self.ser = Arduino.Serial('raspi', 'usb')