Project: Box2D_friction_mod      WheelConstraint.h      box2d_friction_joint.patch      b2FrictionJoint.h      TopDownCar.h      b2FrictionJoint.cpp      TestEntries.cpp      python_friction_joint.patch     

Project: jvfeatures

jvtypes.h      jvtypes.cpp      jvfeatures.h      chessSeg.cpp      jvtest.cpp      jvfeatures.cpp     

Project: Other


Project: Infinite HMM Tutorial

HMMProblem.m      HMM.m      README.txt      HDP.m      HDP_HMM.m      run.m      ConditionalProbabilityTable.m     

Project: Arduino_Code

arduino-serial.c      oscilloscope.pde      ranger_test.pde      accelerometer_test.pde      pwm_manual.pde      servo_test.pde      motordriver.pde      ranger_plane_sweep.pde      helicopter_controller.pde      clodbuster_controller.pde     

Project: RRT

BidirectionalRRT.cpp      RRT.tgz      AbstractRRT.cpp      RRT.h      RRT.cpp      rrt_test.cpp     

Project: ArduCom     

Project: Dirichlet Process Mixture Tutorial

EM_GM.m      DP_Demo.m      DirichletProcess.m      DPMM.m      gaussian_EM.m     

Project: support

Protector.php      geshi.php     

Project: Cogent

CodePane.php      Cogent.php      NotesPane.php      PubsTable.php      PicsPane.php     
Click here to download "resources/code/Arduino_Code/"


#!/usr/bin/env python

import math,sys

file = sys.argv[1]

#file = open("/Users/jscholz/Documents/Arduino/rangeloop_raw.dat")
print "Converting ", file

for i in file.readlines():
    #print i
    angle = i.strip("\n").split(" ")[0]
    dist = i.strip("\n").split(" ")[1]
#    print angle,dist
#    x = (500 - float(dist)) * math.cos(float(angle) * math.pi/180)
#    y = (500 - float(dist)) * math.sin(float(angle) * math.pi/180)
    x = (1/float(dist)+0.42) * math.cos(float(angle) * math.pi/180)
    y = (1/float(dist)+0.42) * math.sin(float(angle) * math.pi/180)
    print x, y


About me

Pic of me