Exemplo n.º 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])
Exemplo n.º 2
0
from lfd import LFD
import numpy as np
import caffe
import time
import cv2
import os
import datetime

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

options = Options()

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]
])
"""#options.model_path = "./net/nets/net3/model3.prototxt"
#options.weights_path = "./net/nets/net3/weights_iter_115.caffemodel"
options.model_path = "./net/nets/net2/model2.prototxt"
options.weights_path = "./net/nets/net2/weights_iter_240.caffemodel"
"""
options.record = True

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

dataset_name = ""  # if you want to add to existing dataset, specifiy directory name (not path).
Exemplo n.º 3
0
Comment or uncomment "options.record = True"
"""

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]])

izzy.stop()
#izzy.gotoState(None, .1, None, None, None, None])
Exemplo n.º 4
0
from gripper.TurnTableControl import *
from gripper.PyControl import *
from gripper.xboxController import *

from pipeline.bincam import BinaryCamera
from options import Options

import time
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]])

while True:
    print izzy.getState()
    print t.getState()
    time.sleep(.3)
Exemplo n.º 5
0
from gripper.TurnTableControl import *
from gripper.PyControl import *
from gripper.xboxController import *

from pipeline.bincam import BinaryCamera
from options import Options

import time
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]])

while True: 
    print izzy.getState()
    # print t.getState()
    time.sleep(.3)
Exemplo n.º 6
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()