Пример #1
0
from gripper.PyControl import *
from gripper.xboxController import *

from pipeline.bincam import BinaryCamera
from options import Options
from lfd import LFD

import argparse
ap = argparse.ArgumentParser()
ap.add_argument('-s', '--show', required=False, action='store_true')
args = vars(ap.parse_args())

bincam = BinaryCamera('./meta.txt')
bincam.open()

options = Options()
options.show = args['show']
options.record = False

t = TurnTableControl(
)  # the com number may need to be changed. Default of com7 is used
izzy = PyControl(115200, .04, [0, 0, 0, 0, 0], [0, 0, 0])
# same with this
c = XboxController([
    options.scales[0], 155, options.scales[1], 155, options.scales[2],
    options.scales[3]
])

izzy.stop()
#izzy.gotoState(None, .1, None, None, None, None])
Пример #2
0
"""

from gripper.TurnTableControl import *
from gripper.PyControl import *
from gripper.xboxController import *

from pipeline.bincam import BinaryCamera
from options import Options
from lfd import LFD

import argparse
ap = argparse.ArgumentParser()
ap.add_argument('-s', '--show', required=False, action='store_true')
args = vars(ap.parse_args())


bincam = BinaryCamera('./meta.txt')
bincam.open()

options = Options()
options.show = args['show']
options.record = False

t = TurnTableControl() # the com number may need to be changed. Default of com7 is used
izzy = PyControl(115200, .04, [0,0,0,0,0],[0,0,0]); # same with this
c = XboxController([options.scales[0],155,options.scales[1],155,options.scales[2],options.scales[3]])

lfd = LFD(bincam, izzy, t, c, options=options)
lfd.test()