<gh_stars>0
import math
import time
from Point import Point

PIXELS_PER_METER = 191.0
HEIGHT_CAMERA = 2.921
HEIGHT_ROBOT = .116332

# conversion functions
timeToInt = lambda x: (x.secs-1420000000)*100 + x.nsecs/10000000
pixelToMeter = lambda x: x/PIXELS_PER_METER
meterToPixel = lambda x: int(x*PIXELS_PER_METER)
degreeToRadian = lambda x: x/180.0 * math.pi
radianToDegree = lambda x: int(x * 180.0 / math.pi)

def getTime():
  return int((time.time()-1420000000)*100.0)

MAX_SPEED = .6
MIN_SPEED = .1
MIN_DELTA = .1
SCALE_VEL = 10.0
SCALE_OMEGA = 3.0
RUSH_SPEED = .3
CIRCLE_SPEED = .3

SPEED_ROBOT = .6 # part of deprecated function.
SPEED_ROTATION = 1.0 # part of deprecated function.
DIS_BEHIND_BALL = .3
HOME_GOAL = Point(pixelToMeter(350),0)
AWAY_GOAL = Point(pixelToMeter(-350),0)
CENTER = Point();

HEIGHT_FIELD = 500
WIDTH_FIELD = 700
GUI_MARGIN = 10

HEIGHT_GOAL = 100
WIDTH_GOAL = 30

WIDTH_BALL = meterToPixel(.04178)
RADIUS_ROBOT = meterToPixel(.10124)

GUI_CENTER_X = GUI_MARGIN + WIDTH_FIELD/2
GUI_CENTER_Y = GUI_MARGIN + HEIGHT_FIELD/2

import math
import time
from Point import Point

PIXELS_PER_METER = 191.0
HEIGHT_CAMERA = 2.921
HEIGHT_ROBOT = .116332

# conversion functions
timeToInt = lambda x: (x.secs-1420000000)*100 + x.nsecs/10000000
pixelToMeter = lambda x: x/PIXELS_PER_METER
meterToPixel = lambda x: int(x*PIXELS_PER_METER)
degreeToRadian = lambda x: x/180.0 * math.pi
radianToDegree = lambda x: int(x * 180.0 / math.pi)

def getTime():
  return int((time.time()-1420000000)*100.0)

MAX_SPEED = .6
MIN_SPEED = .1
MIN_DELTA = .1
SCALE_VEL = 10.0
SCALE_OMEGA = 3.0
RUSH_SPEED = .3
CIRCLE_SPEED = .3

SPEED_ROBOT = .6 # part of deprecated function.
SPEED_ROTATION = 1.0 # part of deprecated function.
DIS_BEHIND_BALL = .3
HOME_GOAL = Point(pixelToMeter(350),0)
AWAY_GOAL = Point(pixelToMeter(-350),0)
CENTER = Point();

HEIGHT_FIELD = 500
WIDTH_FIELD = 700
GUI_MARGIN = 10

HEIGHT_GOAL = 100
WIDTH_GOAL = 30

WIDTH_BALL = meterToPixel(.04178)
RADIUS_ROBOT = meterToPixel(.10124)

GUI_CENTER_X = GUI_MARGIN + WIDTH_FIELD/2
GUI_CENTER_Y = GUI_MARGIN + HEIGHT_FIELD/2
# conversion functions # part of deprecated function. # part of deprecated function.